fix up callsites of config_read to check for >= 0

This commit is contained in:
Denis Vlasenko
2008-07-16 23:04:49 +00:00
parent c01340fe26
commit fb1642f2ca
4 changed files with 5 additions and 5 deletions

View File

@ -163,7 +163,7 @@ int nameif_main(int argc, char **argv)
struct parser_t parser;
if (config_open(&parser, fname)) {
char *tokens[2];
while (config_read(&parser, tokens, 2, 2, " \t", '#'))
while (config_read(&parser, tokens, 2, 2, " \t", '#') >= 0)
prepend_new_eth_table(&clist, tokens[0], tokens[1]);
config_close(&parser);
}