summaryrefslogtreecommitdiffstats
path: root/ospfd
diff options
context:
space:
mode:
Diffstat (limited to 'ospfd')
-rw-r--r--ospfd/ospf_interface.c2
-rw-r--r--ospfd/ospf_vty.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/ospfd/ospf_interface.c b/ospfd/ospf_interface.c
index af4f0a60..f41c4f16 100644
--- a/ospfd/ospf_interface.c
+++ b/ospfd/ospf_interface.c
@@ -1011,7 +1011,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 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++)