diff options
| author | Roy Marples <roy@marples.name> | 2016-05-19 12:56:06 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2016-05-19 12:56:06 +0000 |
| commit | cc1815985352e93d2827a554b79cb795ee235eb7 (patch) | |
| tree | d1d1d072d8a9dd45317b6b28bf5eb2c3b95390fe | |
| parent | 2eb2966f967ca0e70f7720fae31c1822fd7a615e (diff) | |
| download | dhcpcd-cc1815985352e93d2827a554b79cb795ee235eb7.tar.xz | |
Use named initialiser.
| -rw-r--r-- | ipv4ll.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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) |
