]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Linux: fix compile
authorRoy Marples <roy@marples.name>
Wed, 7 Oct 2020 15:21:26 +0000 (16:21 +0100)
committerRoy Marples <roy@marples.name>
Wed, 7 Oct 2020 15:21:26 +0000 (16:21 +0100)
src/if.c

index 9b460797f5b3657b65997a2e194fb37e040e4ddd..5f4edb86d07da110572da96c798b86228e6b27b5 100644 (file)
--- 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;
        }