diff options
author | Simon Kelley <simon@thekelleys.org.uk> | 2023-04-12 16:25:49 +0100 |
---|---|---|
committer | Simon Kelley <simon@thekelleys.org.uk> | 2023-04-12 16:25:49 +0100 |
commit | 597378cdf55b248a54b930fa31acbad7415aaefd (patch) | |
tree | fb475051ca1704946ce3110dac07c2054a14de29 /src/dnsmasq.c | |
parent | 15dcdc824ad49e98aaa1a527d82ac6502bdb50fb (diff) | |
download | dnsmasq-597378cdf55b248a54b930fa31acbad7415aaefd.tar.gz |
Turn "used" member of struct iname into flags in preparation for more.
Diffstat (limited to 'src/dnsmasq.c')
-rw-r--r-- | src/dnsmasq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dnsmasq.c b/src/dnsmasq.c index c0dd5ac..bc6644c 100644 --- a/src/dnsmasq.c +++ b/src/dnsmasq.c @@ -379,7 +379,7 @@ int main (int argc, char **argv) if (!option_bool(OPT_CLEVERBIND)) for (if_tmp = daemon->if_names; if_tmp; if_tmp = if_tmp->next) - if (if_tmp->name && !if_tmp->used) + if (if_tmp->name && !(if_tmp->flags & INAME_USED)) die(_("unknown interface %s"), if_tmp->name, EC_BADNET); #if defined(HAVE_LINUX_NETWORK) && defined(HAVE_DHCP) @@ -935,7 +935,7 @@ int main (int argc, char **argv) if (!option_bool(OPT_NOWILD)) for (if_tmp = daemon->if_names; if_tmp; if_tmp = if_tmp->next) - if (if_tmp->name && !if_tmp->used) + if (if_tmp->name && !(if_tmp->flags & INAME_USED)) my_syslog(LOG_WARNING, _("warning: interface %s does not currently exist"), if_tmp->name); if (daemon->port != 0 && option_bool(OPT_NO_RESOLV)) |