clean up some bad, bad formatting
This commit is contained in:
parent
76729b8c69
commit
e30495654d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user