summaryrefslogtreecommitdiffstats
path: root/bgpd
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2015-03-03 09:07:25 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2015-04-21 10:18:01 +0200
commitab90fc04a57b7b1d93ccddb8c9fbbf339a7ffc4c (patch)
tree7c75add9b86f59da16d636e963402494dfbf6ecd /bgpd
parent388f8857eb81ef75014060976776523a58a99389 (diff)
downloadquagga-ab90fc04a57b7b1d93ccddb8c9fbbf339a7ffc4c.tar.bz2
quagga-ab90fc04a57b7b1d93ccddb8c9fbbf339a7ffc4c.tar.xz
*: add/cleanup initialisers
There were some (inconsequential) warnings about uninitialised use of variables. Also, in one case, sub-structs were mixed in initialisation, which doesn't quite work as intended. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgp_routemap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_routemap.c b/bgpd/bgp_routemap.c
index be3c2eec..95f1dff4 100644
--- a/bgpd/bgp_routemap.c
+++ b/bgpd/bgp_routemap.c
@@ -131,7 +131,7 @@ route_match_peer (void *rule, struct prefix *prefix, route_map_object_t type,
void *object)
{
union sockunion *su;
- union sockunion su_def = { .sa.sa_family = AF_INET,
+ union sockunion su_def = { .sin.sin_family = AF_INET,
.sin.sin_addr.s_addr = INADDR_ANY };
struct peer_group *group;
struct peer *peer;