summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-05-19 12:56:06 +0000
committerRoy Marples <roy@marples.name>2016-05-19 12:56:06 +0000
commitcc1815985352e93d2827a554b79cb795ee235eb7 (patch)
treed1d1d072d8a9dd45317b6b28bf5eb2c3b95390fe
parent2eb2966f967ca0e70f7720fae31c1822fd7a615e (diff)
downloaddhcpcd-cc1815985352e93d2827a554b79cb795ee235eb7.tar.xz
Use named initialiser.
-rw-r--r--ipv4ll.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/ipv4ll.c b/ipv4ll.c
index 9ad5ea39..0a82f4a4 100644
--- a/ipv4ll.c
+++ b/ipv4ll.c
@@ -45,8 +45,12 @@
#include "ipv4ll.h"
#include "script.h"
-static const struct in_addr inaddr_llmask = { HTONL(LINKLOCAL_MASK) };
-static const struct in_addr inaddr_llbcast = { HTONL(LINKLOCAL_BCAST) };
+static const struct in_addr inaddr_llmask = {
+ .s_addr = HTONL(LINKLOCAL_MASK)
+};
+static const struct in_addr inaddr_llbcast = {
+ .s_addr = HTONL(LINKLOCAL_BCAST)
+};
static in_addr_t
ipv4ll_pickaddr(struct arp_state *astate)