aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-11-06 02:23:39 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-11-06 02:23:39 +0000
commit1bec1b980e3cf5ad604fb0c2038a3ab83d9ab5f5 (patch)
tree924352d9309f62c733927506ed08086a2880556c /networking/udhcp
parentcd0fbb5e778e3cef7f88b71a55b673cbdf7cee85 (diff)
downloadbusybox-w32-1bec1b980e3cf5ad604fb0c2038a3ab83d9ab5f5.tar.gz
busybox-w32-1bec1b980e3cf5ad604fb0c2038a3ab83d9ab5f5.tar.bz2
busybox-w32-1bec1b980e3cf5ad604fb0c2038a3ab83d9ab5f5.zip
telnet: use poll, it's shorter
*: style fixes
Diffstat (limited to 'networking/udhcp')
-rw-r--r--networking/udhcp/files.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/networking/udhcp/files.c b/networking/udhcp/files.c
index 8ed485558..59a5e4ab2 100644
--- a/networking/udhcp/files.c
+++ b/networking/udhcp/files.c
@@ -343,8 +343,10 @@ int read_config(const char *file)
343 p = strchr(buffer, '#'); 343 p = strchr(buffer, '#');
344 if (p) *p = '\0'; 344 if (p) *p = '\0';
345 345
346 if (!(token = strtok(buffer, " \t"))) continue; 346 token = strtok(buffer, " \t");
347 if (!(line = strtok(NULL, ""))) continue; 347 if (!token) continue;
348 line = strtok(NULL, "");
349 if (!line) continue;
348 350
349 /* eat leading whitespace */ 351 /* eat leading whitespace */
350 line = skip_whitespace(line); 352 line = skip_whitespace(line);