summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_packet.c
diff options
context:
space:
mode:
Diffstat (limited to 'ospfd/ospf_packet.c')
-rw-r--r--ospfd/ospf_packet.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/ospfd/ospf_packet.c b/ospfd/ospf_packet.c
index be137d91..23eae565 100644
--- a/ospfd/ospf_packet.c
+++ b/ospfd/ospf_packet.c
@@ -641,8 +641,7 @@ ospf_write (struct thread *thread)
* and reliability - not more data, than our
* socket can accept
*/
- maxdatasize = MIN (oi->ifp->mtu, ospf->maxsndbuflen) -
- sizeof (struct ip);
+ maxdatasize = MIN((int)oi->ifp->mtu, ospf->maxsndbuflen) - sizeof (struct ip);
/* Get one packet from queue. */
op = ospf_fifo_head (oi->obuf);
@@ -1777,7 +1776,7 @@ ospf_ls_upd (struct ip *iph, struct ospf_header *ospfh,
{
if (IS_DEBUG_OSPF_NSSA)
zlog_debug("Incoming External LSA Discarded: We are NSSA/STUB Area");
- DISCARD_LSA (lsa, 1);
+ DISCARD_LSA (lsa, 1);
}
if (lsa->data->type == OSPF_AS_NSSA_LSA)
@@ -1785,7 +1784,7 @@ ospf_ls_upd (struct ip *iph, struct ospf_header *ospfh,
{
if (IS_DEBUG_OSPF_NSSA)
zlog_debug("Incoming NSSA LSA Discarded: Not NSSA Area");
- DISCARD_LSA (lsa,2);
+ DISCARD_LSA (lsa,2);
}
/* Find the LSA in the current database. */
@@ -2005,7 +2004,7 @@ ospf_ls_upd (struct ip *iph, struct ospf_header *ospfh,
}
}
#undef DISCARD_LSA
-
+
assert (listcount (lsas) == 0);
list_delete (lsas);
}