]> git.puffer.fish Git - matthieu/frr.git/commitdiff
*: fix in_addr initialisers
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 15 Sep 2015 10:00:09 +0000 (03:00 -0700)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Thu, 26 May 2016 15:33:32 +0000 (15:33 +0000)
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit 5181a0296687a6004dd00c7c0874886c9ff0bf60)

bgpd/bgp_attr.c
bgpd/bgp_snmp.c
ospfd/ospf_snmp.c

index 214aa095f11ff2f30dc973b545fc1028c6fa39d8..c2c86e51a29e3b6d6b08a71eb88cff39a0c01074 100644 (file)
@@ -1825,7 +1825,7 @@ bgp_attr_parse (struct peer *peer, struct attr *attr, bgp_size_t size,
   /* same goes for as4_aggregator */
   struct aspath *as4_path = NULL;
   as_t as4_aggregator = 0;
-  struct in_addr as4_aggregator_addr = { 0 };
+  struct in_addr as4_aggregator_addr = { .s_addr = 0 };
 
   /* Initialize bitmap. */
   memset (seen, 0, BGP_ATTR_BITMAP_SIZE);
index 8d4b616a44c018c8b1d3c14bcf44d2694572c86c..84a527b96a46b34f186c8a5d9fc8b506877a476c 100644 (file)
@@ -120,7 +120,7 @@ oid bgp_oid [] = { BGP4MIB };
 oid bgp_trap_oid [] = { BGP4MIB, 0 };
 
 /* IP address 0.0.0.0. */
-static struct in_addr bgp_empty_addr = {0};
+static struct in_addr bgp_empty_addr = { .s_addr = 0 };
 
 /* Hook functions. */
 static u_char *bgpVersion (struct variable *, oid [], size_t *, int,
index 604766d8255f1d2941aeab6c5abc8a4051a942c2..16361533789919964a19d5cfdc67858da833e204 100644 (file)
@@ -213,7 +213,7 @@ oid ospf_oid [] = { OSPF2MIB };
 oid ospf_trap_oid [] = { OSPF2MIB, 16, 2 }; /* Not reverse mappable! */
 
 /* IP address 0.0.0.0. */
-static struct in_addr ospf_empty_addr = {0};
+static struct in_addr ospf_empty_addr = { .s_addr = 0 };
 
 /* Hook functions. */
 static u_char *ospfGeneralGroup (struct variable *, oid *, size_t *,