telnet: use poll, it's shorter

*: style fixes
This commit is contained in:
Denis Vlasenko
2007-11-06 02:23:39 +00:00
parent cd0fbb5e77
commit 1bec1b980e
5 changed files with 79 additions and 80 deletions

View File

@ -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);