]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Move the #ifdef higher to exclude static consts.
authorRoy Marples <roy@marples.name>
Tue, 27 Sep 2016 09:00:26 +0000 (09:00 +0000)
committerRoy Marples <roy@marples.name>
Tue, 27 Sep 2016 09:00:26 +0000 (09:00 +0000)
ipv4ll.c

index f73637b0e5b7d31955e2bb0461df8936914f2347..398a692a5255f89c473666bf3057729af474504e 100644 (file)
--- a/ipv4ll.c
+++ b/ipv4ll.c
@@ -45,6 +45,7 @@
 #include "ipv4ll.h"
 #include "script.h"
 
+#ifdef IPV4LL
 static const struct in_addr inaddr_llmask = {
        .s_addr = HTONL(LINKLOCAL_MASK)
 };
@@ -52,7 +53,6 @@ static const struct in_addr inaddr_llbcast = {
        .s_addr = HTONL(LINKLOCAL_BCAST)
 };
 
-#ifdef IPV4LL
 static in_addr_t
 ipv4ll_pickaddr(struct arp_state *astate)
 {