Turn "used" member of struct iname into flags in preparation for more.

This commit is contained in:
Simon Kelley
2023-04-12 16:25:49 +01:00
parent 15dcdc824a
commit 597378cdf5
5 changed files with 22 additions and 11 deletions

View File

@@ -2833,7 +2833,7 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
/* new->name may be NULL if someone does
"interface=" to disable all interfaces except loop. */
new->name = opt_string_alloc(arg);
new->used = 0;
new->flags = 0;
arg = comma;
} while (arg);
break;
@@ -2943,7 +2943,7 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
else
ret_err_free(gen_err, new);
new->used = 0;
new->flags = 0;
if (option == 'a')
{
new->next = daemon->if_addrs;