build/arm: Arm compilation warning fix
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 <sharpd@cumulusnetworks.com>
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c
index e5e5631..c6f3b40 100644
--- a/ospfd/ospf_vty.c
+++ b/ospfd/ospf_vty.c
@@ -3694,7 +3694,8 @@
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++)