diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-12-09 17:28:55 +0000 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2010-02-05 01:40:34 +0100 |
commit | ebada09457732536a890630e695cb6e4eb4d4d44 (patch) | |
tree | fa348c99cef57817919949e0a22c5b3e03a6a7a5 /ospfd/ospf_zebra.c | |
parent | 75f1999b2c42042725b9ee782e135b0300cc384e (diff) | |
download | quagga-ebada09457732536a890630e695cb6e4eb4d4d44.tar.bz2 quagga-ebada09457732536a890630e695cb6e4eb4d4d44.tar.xz |
ospf: cleanup
OSPF compiler warnings:
* remove dead code
* avoid casting int to pointer (instead use unsigned long)
(changes to ospf_ase.c removed by David Lamparter)
Cc: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'ospfd/ospf_zebra.c')
-rw-r--r-- | ospfd/ospf_zebra.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ospfd/ospf_zebra.c b/ospfd/ospf_zebra.c index 6f0a71ff..0c600282 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 %#llx metric %d mtu %d", + ifp->name, ifp->ifindex, (unsigned long long) ifp->flags, + ifp->metric, ifp->mtu); #ifdef HAVE_SNMP ospf_snmp_if_delete (ifp); @@ -964,7 +965,7 @@ ospf_distribute_list_update_timer (struct thread *thread) /* Update distribute-list and set timer to apply access-list. */ void -ospf_distribute_list_update (struct ospf *ospf, int type) +ospf_distribute_list_update (struct ospf *ospf, unsigned long type) { struct route_table *rt; |