diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2015-03-03 09:07:25 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2015-04-21 10:18:01 +0200 |
commit | ab90fc04a57b7b1d93ccddb8c9fbbf339a7ffc4c (patch) | |
tree | 7c75add9b86f59da16d636e963402494dfbf6ecd /bgpd | |
parent | 388f8857eb81ef75014060976776523a58a99389 (diff) | |
download | quagga-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.c | 2 |
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; |