]> git.proxmox.com Git - mirror_frr.git/commitdiff
ripngd: ripngd-warnings.patch
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 20 May 2015 01:29:14 +0000 (18:29 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 20 May 2015 01:29:14 +0000 (18:29 -0700)
Remove compile warnings for the ripngd directory
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by:

ripngd/ripng_interface.c
ripngd/ripngd.c

index 8717bfb0e25a32788f17e29c896f513d67c078e0..9517c924c65a605cea0739297d45a11a575e2e56 100644 (file)
@@ -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();
index 941c3a068cd441f0b1598caca8b4e5a05db4642f..85c866e060139e612b17674199583464ab350f93 100644 (file)
@@ -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];