summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-10-07 16:21:26 +0100
committerRoy Marples <roy@marples.name>2020-10-07 16:21:26 +0100
commit6a5456df2211fcb1969044e6c678a5c8aa7f07d2 (patch)
tree3fef66ab8148b6629b56344df0e540361562fed9
parentf1f3372c470cd347c49ca490353bb1134298d360 (diff)
downloaddhcpcd-6a5456df2211fcb1969044e6c678a5c8aa7f07d2.tar.xz
Linux: fix compile
-rw-r--r--src/if.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/if.c b/src/if.c
index 9b460797..5f4edb86 100644
--- a/src/if.c
+++ b/src/if.c
@@ -423,12 +423,14 @@ if_check_arphrd(struct interface *ifp, unsigned int active, bool if_noconf)
break;
default:
if (active) {
+ int i;
+
if (if_noconf)
active = IF_INACTIVE;
i = active ? LOG_WARNING : LOG_DEBUG;
logmessage(i, "%s: unsupported"
" interface type 0x%.2x",
- ifp->name, ifp->hw_type);
+ ifp->name, ifp->hwtype);
}
break;
}