From: Hasso Tepper Date: Thu, 11 Oct 2012 11:15:18 +0000 (+0000) Subject: ospfd: remove some buggy extra ';' symbols. X-Git-Tag: frr-2.0-rc1~1753 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=8c9ed279852393804c26e3c8c556a13d08654907;p=matthieu%2Ffrr.git ospfd: remove some buggy extra ';' symbols. * ospfd/ospf_apiserver.c: extra ; causing lookup to fail always * ospfd/ospf_lsa.c: extra ; causing debug output even when disabled Signed-off-by: David Lamparter --- diff --git a/ospfd/ospf_apiserver.c b/ospfd/ospf_apiserver.c index 2a9003b72b..84d70ccc1b 100644 --- a/ospfd/ospf_apiserver.c +++ b/ospfd/ospf_apiserver.c @@ -105,7 +105,7 @@ ospf_apiserver_if_lookup_by_ifp (struct interface *ifp) struct ospf_interface *oi; struct ospf *ospf; - if (!(ospf = ospf_lookup ())); + if (!(ospf = ospf_lookup ())) return NULL; for (ALL_LIST_ELEMENTS (ospf->oiflist, node, nnode, oi)) diff --git a/ospfd/ospf_lsa.c b/ospfd/ospf_lsa.c index 5579d8efda..e778251caa 100644 --- a/ospfd/ospf_lsa.c +++ b/ospfd/ospf_lsa.c @@ -1866,7 +1866,7 @@ ospf_translated_nssa_originate (struct ospf *ospf, struct ospf_lsa *type7) if ( (new = ospf_lsa_install (ospf, NULL, new)) == NULL) { - if (IS_DEBUG_OSPF_NSSA); + if (IS_DEBUG_OSPF_NSSA) zlog_debug ("ospf_lsa_translated_nssa_originate(): " "Could not install LSA " "id %s", inet_ntoa (type7->data->id));