diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-07-29 19:16:13 -0400 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2015-09-24 15:26:44 +0100 |
commit | 0bc874b88cf86fca4b18f3672a441ed142fc499d (patch) | |
tree | 35781fe9f0d71c7df85fe07c3461553eb4901215 /ospfd/ospf_vty.c | |
parent | fbc3e97d747862fd47f711c9f15b8166bdf94b18 (diff) | |
download | quagga-0bc874b88cf86fca4b18f3672a441ed142fc499d.tar.bz2 quagga-0bc874b88cf86fca4b18f3672a441ed142fc499d.tar.xz |
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>
Diffstat (limited to 'ospfd/ospf_vty.c')
-rw-r--r-- | ospfd/ospf_vty.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index e5e56319..c6f3b404 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@ -3694,7 +3694,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++) |