Skip to content

Commit 0540723

Browse files
committed
Fix warnings about sign conversions
1 parent a8b64af commit 0540723

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

libhttpd/ip_acl.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ char *cidr;
122122
int action;
123123
{
124124
httpAcl *cur;
125-
int addr, len;
125+
unsigned int addr;
126+
unsigned int len;
126127

127128
/*
128129
** Check the ACL info is reasonable
@@ -165,7 +166,9 @@ int
165166
httpdCheckAcl(httpd * server, request * r, httpAcl * acl)
166167
{
167168
httpAcl *cur;
168-
int addr, len, res, action;
169+
unsigned int addr;
170+
unsigned int len;
171+
int res, action;
169172

170173
action = HTTP_ACL_DENY;
171174
res = scanCidr(r->clientAddr, &addr, &len); /* Returns -1 on conversion failure. */

0 commit comments

Comments
 (0)