summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-08-04 14:33:04 +0200
committerMichael Adam <obnox@samba.org>2009-08-04 23:47:27 +0200
commit0abd82b7e9bde29c46b697f8f5357fcc5a404c59 (patch)
treec12203ab405d9052be6b9f5c3f91fca162e1fa71 /src
parentb9f2325c54613e33623c377d590084091c61352d (diff)
downloadtinyproxy-0abd82b7e9bde29c46b697f8f5357fcc5a404c59.tar.gz
tinyproxy-0abd82b7e9bde29c46b697f8f5357fcc5a404c59.zip
check_acl(): add explicit cast to return value of vector_getentry()
to reduce compiler warnings. Michael
Diffstat (limited to '')
-rw-r--r--src/acl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/acl.c b/src/acl.c
index cf7f747..e909bd3 100644
--- a/src/acl.c
+++ b/src/acl.c
@@ -349,7 +349,7 @@ check_acl (int fd, const char *ip, const char *host)
for (i = 0; i != (size_t)vector_length (access_list); ++i)
{
- acl = vector_getentry (access_list, i, NULL);
+ acl = (struct acl_s *)vector_getentry (access_list, i, NULL);
switch (acl->type)
{
case ACL_STRING: