summaryrefslogtreecommitdiffstats
path: root/src/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2019-01-23 11:28:59 +0000
committerRoy Marples <roy@marples.name>2019-01-23 11:28:59 +0000
commitc9463d17ed1dc7ea1b8e7b55476838c0f0a267e1 (patch)
tree92237f9e968b7605fb270e5bff3250c385db919b /src/dhcpcd.c
parent16fb7519c3e78d02d4b4279ab39f2f6a2208b7fa (diff)
downloaddhcpcd-c9463d17ed1dc7ea1b8e7b55476838c0f0a267e1.tar.xz
IPv4LL: Remove #defines for functions when IPv4LL is disabled
This allows us to optimise the code better and hopefully become less error prone.
Diffstat (limited to 'src/dhcpcd.c')
-rw-r--r--src/dhcpcd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dhcpcd.c b/src/dhcpcd.c
index 6d99e379..9562af01 100644
--- a/src/dhcpcd.c
+++ b/src/dhcpcd.c
@@ -1340,8 +1340,10 @@ dhcpcd_getinterfaces(void *arg)
len++;
if (D_STATE_RUNNING(ifp))
len++;
+#ifdef IPV4LL
if (IPV4LL_STATE_RUNNING(ifp))
len++;
+#endif
if (IPV6_STATE_RUNNING(ifp))
len++;
if (RS_STATE_RUNNING(ifp))