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 <equinox@opensourcerouting.org>
diff --git a/ospfd/ospf_apiserver.c b/ospfd/ospf_apiserver.c
index 2a9003b..84d70cc 100644
--- a/ospfd/ospf_apiserver.c
+++ b/ospfd/ospf_apiserver.c
@@ -105,7 +105,7 @@
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 5579d8e..e778251 100644
--- a/ospfd/ospf_lsa.c
+++ b/ospfd/ospf_lsa.c
@@ -1866,7 +1866,7 @@
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));