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:
1 parent
a34276feee
commit
b9f2325c54
1 file changed
+1
-1
@@ -347,7 +347,7 @@ check_acl (int fd, const char *ip, const char *host)
|
||||
if (!access_list)
|
||||
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);
|
||||
switch (acl->type)
|
||||
|
||||
Reference in new issue
Block a user