From: Donald Sharp Date: Wed, 20 May 2015 01:29:14 +0000 (-0700) Subject: ripngd: ripngd-warnings.patch X-Git-Tag: frr-2.0-rc1~1378 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=37477535e0b9dcce9cb1d14107b746e0b44fefa8;p=matthieu%2Ffrr.git ripngd: ripngd-warnings.patch Remove compile warnings for the ripngd directory Signed-off-by: Donald Sharp Reviewed-by: --- 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];