]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Use named initialiser.
authorRoy Marples <roy@marples.name>
Thu, 19 May 2016 12:56:06 +0000 (12:56 +0000)
committerRoy Marples <roy@marples.name>
Thu, 19 May 2016 12:56:06 +0000 (12:56 +0000)
ipv4ll.c

index 9ad5ea393db73d01528fbb586d31776b6b859cf7..0a82f4a45ef73a636561f010943bd6eebc96be92 100644 (file)
--- a/ipv4ll.c
+++ b/ipv4ll.c
 #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)