From 6a5456df2211fcb1969044e6c678a5c8aa7f07d2 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 7 Oct 2020 16:21:26 +0100 Subject: [PATCH] Linux: fix compile --- src/if.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.47.2