summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_zebra.c
diff options
context:
space:
mode:
authorChris Hall <GMCH@hestia.halldom.com>2010-04-16 14:29:17 +0100
committerChris Hall <GMCH@hestia.halldom.com>2010-04-16 14:29:17 +0100
commita20526cc30d68ca5c4c7951238faafa8969a31c1 (patch)
treec9a0d8ee5e16ee5f42704c9c9f3122f407f13122 /ospfd/ospf_zebra.c
parentd6f1bd7b60fc94488dc6a0493a6ec17346a03b2d (diff)
downloadquagga-a20526cc30d68ca5c4c7951238faafa8969a31c1.tar.bz2
quagga-a20526cc30d68ca5c4c7951238faafa8969a31c1.tar.xz
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.
Diffstat (limited to 'ospfd/ospf_zebra.c')
-rw-r--r--ospfd/ospf_zebra.c9
1 files changed, 6 insertions, 3 deletions
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. */