The arm cross compiler is issuing warnings for signed/unsigned
comparisons for ntohs.  ntohs returns a unsigned int, while
the counting variables are signed.  Fixed to allow -Werror
to work properly

Signed-off-by: Donald Sharp <[email protected]>
---
 ospf6d/ospf6_message.c | 2 +-
 ospfd/ospf_interface.c | 2 +-
 ospfd/ospf_vty.c       | 3 ++-
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/ospf6d/ospf6_message.c b/ospf6d/ospf6_message.c
index ecc96f7..e71b410 100644
--- a/ospf6d/ospf6_message.c
+++ b/ospf6d/ospf6_message.c
@@ -1630,7 +1630,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 07c3fe3..8084d46 100644
--- a/ospfd/ospf_interface.c
+++ b/ospfd/ospf_interface.c
@@ -1013,7 +1013,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 9d04892..b620718 100644
--- a/ospfd/ospf_vty.c
+++ b/ospfd/ospf_vty.c
@@ -3617,7 +3617,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++)
-- 
1.9.1


_______________________________________________
Quagga-dev mailing list
[email protected]
https://lists.quagga.net/mailman/listinfo/quagga-dev

Reply via email to