summaryrefslogtreecommitdiff
path: root/ctdb/common
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-12-13 10:57:55 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-01-28 10:29:21 +0100
commit6c520978e27e23db5b608f920a93582d953f2616 (patch)
treed7c4e6ef0c5efb67109aa2af19284ea67b8ff11e /ctdb/common
parent611b6c7ebc7f876d73295fd4ceb3e7712ac9b510 (diff)
downloadsamba-6c520978e27e23db5b608f920a93582d953f2616.tar.gz
ctdb:common: Use C99 initializer for 'struct ifreq'
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'ctdb/common')
-rw-r--r--ctdb/common/system_socket.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/ctdb/common/system_socket.c b/ctdb/common/system_socket.c
index 668c0454619..c6800431112 100644
--- a/ctdb/common/system_socket.c
+++ b/ctdb/common/system_socket.c
@@ -329,9 +329,17 @@ int ctdb_sys_send_arp(const ctdb_sock_addr *addr, const char *iface)
{
int s;
struct sockaddr_ll sall = {0};
- struct ifreq if_hwaddr = {{{0}}};
+ struct ifreq if_hwaddr = {
+ .ifr_ifru = {
+ .ifru_flags = 0
+ },
+ };
uint8_t buffer[MAX(ARP_BUFFER_SIZE, IP6_NA_BUFFER_SIZE)];
- struct ifreq ifr = {{{0}}};
+ struct ifreq ifr = {
+ .ifr_ifru = {
+ .ifru_flags = 0
+ },
+ };
struct ether_addr *hwaddr = NULL;
struct ether_addr *ether_dhost = NULL;
size_t len = 0;