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:
Michael Adam 2009-08-04 14:30:52 +02:00
parent a34276feee
commit b9f2325c54

View File

@ -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)