From 0abd82b7e9bde29c46b697f8f5357fcc5a404c59 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 4 Aug 2009 14:33:04 +0200 Subject: check_acl(): add explicit cast to return value of vector_getentry() to reduce compiler warnings. Michael --- src/acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3