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/dhcp-common.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/dhcp-common.c')
-rw-r--r-- | src/dhcp-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcp-common.c b/src/dhcp-common.c index 1d96bc6..360cdc5 100644 --- a/src/dhcp-common.c +++ b/src/dhcp-common.c @@ -553,7 +553,7 @@ char *whichdevice(void) return NULL; for (if_tmp = daemon->if_names; if_tmp; if_tmp = if_tmp->next) - if (if_tmp->name && (!if_tmp->used || strchr(if_tmp->name, '*'))) + if (if_tmp->name && (!(if_tmp->flags & INAME_USED) || strchr(if_tmp->name, '*'))) return NULL; for (found = NULL, iface = daemon->interfaces; iface; iface = iface->next) |