From b9f2325c54613e33623c377d590084091c61352d Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 4 Aug 2009 14:30:52 +0200 Subject: 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 --- src/acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/acl.c b/src/acl.c index ffb73f4..cf7f747 100644 --- a/src/acl.c +++ b/src/acl.c @@ -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) -- cgit v1.2.3