summaryrefslogtreecommitdiffstats
path: root/zebra/connected.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2015-05-20 03:04:26 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2015-05-20 03:04:26 +0200
commit4e3afb147210d0e98de5ad158062d1b79ac026fb (patch)
tree4e04b743fffb14c55801fb2d0a2d8c8a50afacd8 /zebra/connected.c
parentlib: lib-warnings.patch (diff)
downloadfrr-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.c24
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);