diff options
author | Denis Vlasenko | 2007-11-06 02:23:39 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-11-06 02:23:39 +0000 |
commit | 1bec1b980e3cf5ad604fb0c2038a3ab83d9ab5f5 (patch) | |
tree | 924352d9309f62c733927506ed08086a2880556c /networking/udhcp/files.c | |
parent | cd0fbb5e778e3cef7f88b71a55b673cbdf7cee85 (diff) | |
download | busybox-1bec1b980e3cf5ad604fb0c2038a3ab83d9ab5f5.zip busybox-1bec1b980e3cf5ad604fb0c2038a3ab83d9ab5f5.tar.gz |
telnet: use poll, it's shorter
*: style fixes
Diffstat (limited to 'networking/udhcp/files.c')
-rw-r--r-- | networking/udhcp/files.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/networking/udhcp/files.c b/networking/udhcp/files.c index 8ed4855..59a5e4a 100644 --- a/networking/udhcp/files.c +++ b/networking/udhcp/files.c @@ -343,8 +343,10 @@ int read_config(const char *file) p = strchr(buffer, '#'); if (p) *p = '\0'; - if (!(token = strtok(buffer, " \t"))) continue; - if (!(line = strtok(NULL, ""))) continue; + token = strtok(buffer, " \t"); + if (!token) continue; + line = strtok(NULL, ""); + if (!line) continue; /* eat leading whitespace */ line = skip_whitespace(line); |