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

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

No files matched your search

+1 -1
View File
@@ -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)