clean up some bad, bad formatting

This commit is contained in:
Russ Dill 2003-12-16 22:46:33 +00:00
parent 76729b8c69
commit e30495654d

View File

@ -81,13 +81,15 @@ static int read_opt(const char *const_line, void *arg)
u_int32_t result_u32;
void *valptr;
if ((opt = strtok(strcpy(line, const_line), " \t="))) {
if (!(opt = strtok(strcpy(line, const_line), " \t="))) return 0;
for (option = dhcp_options; option->code; option++)
if (!strcasecmp(option->name, opt))
break;
if (option->code) do {
if (!option->code) return 0;
do {
val = strtok(NULL, ", \t");
if(!val)
break;
@ -147,7 +149,6 @@ static int read_opt(const char *const_line, void *arg)
else
break;
} while (option->flags & OPTION_LIST);
}
return retval;
}