From 37477535e0b9dcce9cb1d14107b746e0b44fefa8 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 19 May 2015 18:29:14 -0700 Subject: [PATCH] ripngd: ripngd-warnings.patch Remove compile warnings for the ripngd directory Signed-off-by: Donald Sharp Reviewed-by: --- ripngd/ripng_interface.c | 2 +- ripngd/ripngd.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ripngd/ripng_interface.c b/ripngd/ripng_interface.c index 8717bfb0e2..9517c924c6 100644 --- a/ripngd/ripng_interface.c +++ b/ripngd/ripng_interface.c @@ -590,7 +590,7 @@ ripng_enable_network_add (struct prefix *p) return -1; } else - node->info = (char *) "enabled"; + node->info = (void *)1; /* XXX: One should find a better solution than a generic one */ ripng_enable_apply_all(); diff --git a/ripngd/ripngd.c b/ripngd/ripngd.c index 941c3a068c..85c866e060 100644 --- a/ripngd/ripngd.c +++ b/ripngd/ripngd.c @@ -238,6 +238,8 @@ ripng_recv_packet (int sock, u_char *buf, int bufsize, struct cmsghdr *cmsgptr; struct in6_addr dst; + memset(&dst, 0, sizeof(struct in6_addr)); + /* Ancillary data. This store cmsghdr and in6_pktinfo. But at this point I can't determine size of cmsghdr */ char adata[1024]; -- 2.39.5