check_acl(): add cast to recuce compiler warning (unsigned / signed comparison)
vector_lenth() returns < 0 if the vectore is NULL but this has been checked before, so we can safely cast. Michael
This commit is contained in:
parent
a34276feee
commit
b9f2325c54
@ -347,7 +347,7 @@ check_acl (int fd, const char *ip, const char *host)
|
|||||||
if (!access_list)
|
if (!access_list)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
for (i = 0; i != vector_length (access_list); ++i)
|
for (i = 0; i != (size_t)vector_length (access_list); ++i)
|
||||||
{
|
{
|
||||||
acl = vector_getentry (access_list, i, NULL);
|
acl = vector_getentry (access_list, i, NULL);
|
||||||
switch (acl->type)
|
switch (acl->type)
|
||||||
|
Loading…
Reference in New Issue
Block a user