summaryrefslogtreecommitdiff
path: root/zebra/irdp_interface.c
diff options
context:
space:
mode:
authorhasso <hasso>2004-10-12 20:50:58 +0000
committerhasso <hasso>2004-10-12 20:50:58 +0000
commit39db97e4e02eae08a1e18528367b6e9b07eb6a93 (patch)
tree2fb3a0269f4f2fe235ef722e3ad9cc8e6005bb6c /zebra/irdp_interface.c
parent39ff11dc92d004b59d1ec786fd54b27111fee0b5 (diff)
Some compiler warnings fixes and fix for bugzilla #119.
Diffstat (limited to 'zebra/irdp_interface.c')
-rw-r--r--zebra/irdp_interface.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/zebra/irdp_interface.c b/zebra/irdp_interface.c
index 76654c47..e824abed 100644
--- a/zebra/irdp_interface.c
+++ b/zebra/irdp_interface.c
@@ -155,7 +155,7 @@ int if_drop_group (struct interface *ifp)
return 0;
}
-struct interface *get_iflist_ifp(int idx)
+struct interface *get_iflist_ifp(unsigned int idx)
{
struct listnode *node;
struct interface *ifp;
@@ -500,7 +500,7 @@ DEFUN (ip_irdp_minadvertinterval,
zi=ifp->info;
irdp=&zi->irdp;
- if( atoi(argv[0]) <= irdp->MaxAdvertInterval) {
+ if( (unsigned) atoi(argv[0]) <= irdp->MaxAdvertInterval) {
irdp->MinAdvertInterval = atoi(argv[0]);
return CMD_SUCCESS;
@@ -534,7 +534,7 @@ DEFUN (ip_irdp_maxadvertinterval,
irdp=&zi->irdp;
- if( irdp->MinAdvertInterval <= atoi(argv[0]) ) {
+ if( irdp->MinAdvertInterval <= (unsigned) atoi(argv[0]) ) {
irdp->MaxAdvertInterval = atoi(argv[0]);
return CMD_SUCCESS;