diff options
author | Michael Adam <obnox@samba.org> | 2009-08-04 14:30:52 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-08-04 23:47:27 +0200 |
commit | b9f2325c54613e33623c377d590084091c61352d (patch) | |
tree | 5ad0d35e2199c0faed483c9439a8fee9160b3814 /src | |
parent | a34276feee15941ad2cb753bde95ac4f96260d10 (diff) | |
download | tinyproxy-b9f2325c54613e33623c377d590084091c61352d.tar.gz tinyproxy-b9f2325c54613e33623c377d590084091c61352d.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/acl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |