diff options
author | brian <brian@FreeBSD.org> | 2004-09-05 01:46:52 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2004-09-05 01:46:52 +0000 |
commit | 6f864d0a973a7f3987d73132be311b7cfbd1ccfc (patch) | |
tree | fb5af1860e245ef67196527d9ba46e5c9e284bf6 /usr.sbin/ppp/iplist.c | |
parent | 2f8e87b45e5735ee9774fce8bc8ffaf1fdc72657 (diff) | |
download | FreeBSD-src-6f864d0a973a7f3987d73132be311b7cfbd1ccfc.zip FreeBSD-src-6f864d0a973a7f3987d73132be311b7cfbd1ccfc.tar.gz |
Make ppp WARNS=5 clean
Diffstat (limited to 'usr.sbin/ppp/iplist.c')
-rw-r--r-- | usr.sbin/ppp/iplist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/iplist.c b/usr.sbin/ppp/iplist.c index 4ef00e4..a7fae6e 100644 --- a/usr.sbin/ppp/iplist.c +++ b/usr.sbin/ppp/iplist.c @@ -172,7 +172,7 @@ iplist_reset(struct iplist *list) struct in_addr iplist_setcurpos(struct iplist *list, long pos) { - if (pos < 0 || pos >= list->nItems) { + if (pos < 0 || (unsigned)pos >= list->nItems) { list->cur.pos = -1; list->cur.ip.s_addr = INADDR_ANY; return list->cur.ip; @@ -182,7 +182,7 @@ iplist_setcurpos(struct iplist *list, long pos) list->cur.pos = 0; while (1) { iplist_nextrange(list); - if (pos < list->cur.nItems) { + if (pos < (int)list->cur.nItems) { if (pos) { list->cur.srcitem = pos; list->cur.pos += pos; |