From a20526cc30d68ca5c4c7951238faafa8969a31c1 Mon Sep 17 00:00:00 2001 From: Chris Hall Date: Fri, 16 Apr 2010 14:29:17 +0100 Subject: Removing compiler warnings. Removed nearly 100 compiler warnings in the various routing daemons which now clean compile. Removed one warning in vty.c, which was obscured by the other warnings. SO... this commit corrects the previous one. --- ospfd/ospf_zebra.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'ospfd/ospf_zebra.c') diff --git a/ospfd/ospf_zebra.c b/ospfd/ospf_zebra.c index 513d04d9..72f0ede4 100644 --- a/ospfd/ospf_zebra.c +++ b/ospfd/ospf_zebra.c @@ -133,8 +133,9 @@ ospf_interface_delete (int command, struct zclient *zclient, if (IS_DEBUG_OSPF (zebra, ZEBRA_INTERFACE)) zlog_debug - ("Zebra: interface delete %s index %d flags %lld metric %d mtu %d", - ifp->name, ifp->ifindex, ifp->flags, ifp->metric, ifp->mtu); + ("Zebra: interface delete %s index %d flags %llu metric %d mtu %d", + ifp->name, ifp->ifindex, (long long unsigned)ifp->flags, + ifp->metric, ifp->mtu); #ifdef HAVE_SNMP ospf_snmp_if_delete (ifp); @@ -967,6 +968,7 @@ void ospf_distribute_list_update (struct ospf *ospf, int type) { struct route_table *rt; + uintptr_t pi ; /* External info does not exist. */ if (!(rt = EXTERNAL_INFO (type))) @@ -977,9 +979,10 @@ ospf_distribute_list_update (struct ospf *ospf, int type) OSPF_TIMER_OFF (ospf->t_distribute_update); /* Set timer. */ + pi = type ; ospf->t_distribute_update = thread_add_timer (master, ospf_distribute_list_update_timer, - (void *) type, OSPF_DISTRIBUTE_UPDATE_DELAY); + (void*)pi, OSPF_DISTRIBUTE_UPDATE_DELAY) ; } /* If access-list is updated, apply some check. */ -- cgit v1.2.3