diff options
Diffstat (limited to 'networking/udhcp/leases.c')
-rw-r--r-- | networking/udhcp/leases.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/networking/udhcp/leases.c b/networking/udhcp/leases.c index 60e9edc68..1745fee03 100644 --- a/networking/udhcp/leases.c +++ b/networking/udhcp/leases.c | |||
@@ -98,7 +98,9 @@ struct dhcpOfferedAddr *find_lease_by_yiaddr(uint32_t yiaddr) | |||
98 | /* check is an IP is taken, if it is, add it to the lease table */ | 98 | /* check is an IP is taken, if it is, add it to the lease table */ |
99 | static int nobody_responds_to_arp(uint32_t addr) | 99 | static int nobody_responds_to_arp(uint32_t addr) |
100 | { | 100 | { |
101 | static const uint8_t blank_chaddr[16]; /* 16 zero bytes */ | 101 | /* 16 zero bytes */ |
102 | static const uint8_t blank_chaddr[16] = { 0 }; | ||
103 | /* = { 0 } helps gcc to put it in rodata, not bss */ | ||
102 | 104 | ||
103 | struct in_addr temp; | 105 | struct in_addr temp; |
104 | int r; | 106 | int r; |