diff options
author | paul <paul> | 2006-12-08 01:09:50 +0000 |
---|---|---|
committer | paul <paul> | 2006-12-08 01:09:50 +0000 |
commit | 94e86481724f54cd0bb3a3cc16d37bdfaa5eb186 (patch) | |
tree | 25f7a59d038ff4a57f6e49a6a2808dc0b7b9cdaf /isisd/isis_zebra.c | |
parent | 4a374e82700075fd05c7b84851f523a05a8c0a33 (diff) | |
download | quagga-94e86481724f54cd0bb3a3cc16d37bdfaa5eb186.tar.bz2 quagga-94e86481724f54cd0bb3a3cc16d37bdfaa5eb186.tar.xz |
[isisd] Fix compiler warnings and allow v4-only compilation
2006-12-08 Hannes Gredler <hannes@gredler.at>
* isis_adjacency.c: (isis_new_adj) Allow NULL snpa argument.
* isis_pdu.c: (various) Update calls to isis_new_adj() to pass
NULL and use default.
* (general) Add forward declarations where required.
Fix up const char *'s.
Allow V4-only compilation.
Diffstat (limited to 'isisd/isis_zebra.c')
-rw-r--r-- | isisd/isis_zebra.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/isisd/isis_zebra.c b/isisd/isis_zebra.c index 4631cc70..9ee5ffc5 100644 --- a/isisd/isis_zebra.c +++ b/isisd/isis_zebra.c @@ -72,7 +72,7 @@ isis_zebra_if_add (int command, struct zclient *zclient, zebra_size_t length) if (isis->debugs & DEBUG_ZEBRA) zlog_debug ("Zebra I/F add: %s index %d flags %ld metric %d mtu %d", - ifp->name, ifp->ifindex, ifp->flags, ifp->metric, ifp->mtu); + ifp->name, ifp->ifindex, (long)ifp->flags, ifp->metric, ifp->mtu); if (if_is_operative (ifp)) isis_csm_state_change (IF_UP_FROM_Z, circuit_scan_by_ifp (ifp), ifp); @@ -98,7 +98,7 @@ isis_zebra_if_del (int command, struct zclient *zclient, zebra_size_t length) if (isis->debugs & DEBUG_ZEBRA) zlog_debug ("Zebra I/F delete: %s index %d flags %ld metric %d mtu %d", - ifp->name, ifp->ifindex, ifp->flags, ifp->metric, ifp->mtu); + ifp->name, ifp->ifindex, (long)ifp->flags, ifp->metric, ifp->mtu); /* Cannot call if_delete because we should retain the pseudo interface @@ -571,12 +571,14 @@ isis_zebra_read_ipv4 (int command, struct zclient *zclient, return 0; } +#ifdef HAVE_IPV6 static int isis_zebra_read_ipv6 (int command, struct zclient *zclient, zebra_size_t length) { return 0; } +#endif #define ISIS_TYPE_IS_REDISTRIBUTED(T) \ T == ZEBRA_ROUTE_MAX ? zclient->default_information : zclient->redist[type] |