summaryrefslogtreecommitdiffstats
path: root/isisd/isis_zebra.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2015-05-20 03:29:15 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2015-05-20 03:29:15 +0200
commit91283e76414a50cc72fcaf7f4d25b93ce924bd1d (patch)
treeaed1b5b517885f348a3b6768f14b4f1922bb4b24 /isisd/isis_zebra.c
parentripngd: ripngd-warnings.patch (diff)
downloadfrr-91283e76414a50cc72fcaf7f4d25b93ce924bd1d.tar.xz
frr-91283e76414a50cc72fcaf7f4d25b93ce924bd1d.zip
isisd: isisd-warnings.patch
Remove compile warnings for the isisd directory Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by:
Diffstat (limited to 'isisd/isis_zebra.c')
-rw-r--r--isisd/isis_zebra.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/isisd/isis_zebra.c b/isisd/isis_zebra.c
index 8d457c462..5522b378e 100644
--- a/isisd/isis_zebra.c
+++ b/isisd/isis_zebra.c
@@ -321,7 +321,7 @@ isis_zebra_route_del_ipv4 (struct prefix *prefix,
}
#ifdef HAVE_IPV6
-void
+static void
isis_zebra_route_add_ipv6 (struct prefix *prefix,
struct isis_route_info *route_info)
{
@@ -525,12 +525,9 @@ isis_zebra_read_ipv4 (int command, struct zclient *zclient,
struct stream *stream;
struct zapi_ipv4 api;
struct prefix_ipv4 p;
- unsigned long ifindex;
- struct in_addr nexthop;
stream = zclient->ibuf;
memset (&p, 0, sizeof (struct prefix_ipv4));
- ifindex = 0;
api.type = stream_getc (stream);
api.instance = stream_getw (stream);
@@ -544,12 +541,12 @@ isis_zebra_read_ipv4 (int command, struct zclient *zclient,
if (CHECK_FLAG (api.message, ZAPI_MESSAGE_NEXTHOP))
{
api.nexthop_num = stream_getc (stream);
- nexthop.s_addr = stream_get_ipv4 (stream);
+ (void)stream_get_ipv4 (stream);
}
if (CHECK_FLAG (api.message, ZAPI_MESSAGE_IFINDEX))
{
api.ifindex_num = stream_getc (stream);
- ifindex = stream_getl (stream);
+ stream_getl (stream);
}
if (CHECK_FLAG (api.message, ZAPI_MESSAGE_DISTANCE))
api.distance = stream_getc (stream);