From: Donald Sharp Date: Wed, 29 Jul 2015 23:02:26 +0000 (-0700) Subject: arm compilation failures. X-Git-Tag: frr-2.0-rc1~1290 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=b07c4cb33e9b78ac37865d4a4d781f9a09d59175;p=matthieu%2Ffrr.git arm compilation failures. 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. --- diff --git a/ospf6d/ospf6_message.c b/ospf6d/ospf6_message.c index 09137cfed1..fe57f2f423 100644 --- a/ospf6d/ospf6_message.c +++ b/ospf6d/ospf6_message.c @@ -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]; diff --git a/ospfd/ospf_interface.c b/ospfd/ospf_interface.c index 6e43462ff7..b10f4fb4f7 100644 --- a/ospfd/ospf_interface.c +++ b/ospfd/ospf_interface.c @@ -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; diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index ef6012d3ef..b730a41298 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@ -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++)