diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-05-20 03:04:26 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-05-20 03:04:26 +0200 |
commit | 4e3afb147210d0e98de5ad158062d1b79ac026fb (patch) | |
tree | 4e04b743fffb14c55801fb2d0a2d8c8a50afacd8 /zebra/connected.c | |
parent | lib: lib-warnings.patch (diff) | |
download | frr-4e3afb147210d0e98de5ad158062d1b79ac026fb.tar.xz frr-4e3afb147210d0e98de5ad158062d1b79ac026fb.zip |
zebra: zebra-warnings.patch
Remove compiled warnings for the zebra directory
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by:
Diffstat (limited to 'zebra/connected.c')
-rw-r--r-- | zebra/connected.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/zebra/connected.c b/zebra/connected.c index 0c9221da4..b891f9e56 100644 --- a/zebra/connected.c +++ b/zebra/connected.c @@ -80,18 +80,18 @@ connected_announce (struct interface *ifp, struct connected *ifc) if (ifc->address->family == AF_INET) { - if (ifc->anchor = if_anchor_lookup_by_address(ifc->address->u.prefix4)) - { - /* found an anchor, so I'm unnumbered */ - SET_FLAG (ifc->flags, ZEBRA_IFA_UNNUMBERED); - listnode_add (ifc->anchor->unnumbered, ifc); - } - else - { - /* I'm numbered */ - UNSET_FLAG (ifc->flags, ZEBRA_IFA_UNNUMBERED); - ifc->unnumbered = list_new(); - } + if ((ifc->anchor = if_anchor_lookup_by_address(ifc->address->u.prefix4))) + { + /* found an anchor, so I'm unnumbered */ + SET_FLAG (ifc->flags, ZEBRA_IFA_UNNUMBERED); + listnode_add (ifc->anchor->unnumbered, ifc); + } + else + { + /* I'm numbered */ + UNSET_FLAG (ifc->flags, ZEBRA_IFA_UNNUMBERED); + ifc->unnumbered = list_new(); + } } listnode_add (ifp->connected, ifc); |