]> git.puffer.fish Git - matthieu/frr.git/commitdiff
arm compilation failures.
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 29 Jul 2015 23:02:26 +0000 (16:02 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 29 Jul 2015 23:02:26 +0000 (16:02 -0700)
Ticket: Trivial
Reviewed by: Trivial
Testing: arm/powerpc/amd64 targets now build

Apparently we have a arm build.  Who knew?  This fixes the compile warnings/errors
produced when you compile a arm build with -Werror.

ospf6d/ospf6_message.c
ospfd/ospf_interface.c
ospfd/ospf_vty.c

index 09137cfed140f001d609f198c5ad20f71de9c7a8..fe57f2f4236c0b81e50227399c12b9dd22893522 100644 (file)
@@ -1640,7 +1640,7 @@ static void
 ospf6_send (struct in6_addr *src, struct in6_addr *dst,
             struct ospf6_interface *oi, struct ospf6_header *oh)
 {
-  int len;
+  unsigned int len;
   char srcname[64], dstname[64];
   struct iovec iovector[2];
 
index 6e43462ff7e03cbfd40b9ef72b74e1310f8af81f..b10f4fb4f7efa5f5aacfd21ee7523fa43c58cd62 100644 (file)
@@ -1028,7 +1028,7 @@ ospf_vl_set_params (struct ospf_vl_data *vl_data, struct vertex *v)
   struct ospf_interface *voi;
   struct listnode *node;
   struct vertex_parent *vp = NULL;
-  int i;
+  unsigned int i;
   struct router_lsa *rl;
 
   voi = vl_data->vl_oi;
index ef6012d3efc24c76960ebaf545f56c01a0899c69..b730a4129834822870b25de3a69d2e939e09cd5e 100644 (file)
@@ -4847,7 +4847,8 @@ static void
 show_ip_ospf_database_router_links (struct vty *vty,
                                     struct router_lsa *rl)
 {
-  int len, i, type;
+  int len, type;
+  unsigned int i;
 
   len = ntohs (rl->header.length) - 4;
   for (i = 0; i < ntohs (rl->links) && len > 0; len -= 12, i++)