From 8bb77cd31b7518fb5d2a6a9d75e16e4abd59df61 Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Wed, 17 Jan 2001 17:44:49 +0000 Subject: [PATCH] fix RT #660 differently --- lib/dns/acl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/dns/acl.c b/lib/dns/acl.c index 4c595789e9..3c3ed47c62 100644 --- a/lib/dns/acl.c +++ b/lib/dns/acl.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: acl.c,v 1.19 2001/01/17 02:58:28 bwelling Exp $ */ +/* $Id: acl.c,v 1.20 2001/01/17 17:44:49 gson Exp $ */ #include @@ -130,17 +130,17 @@ dns_acl_match(isc_netaddr_t *reqaddr, int *match, dns_aclelement_t **matchelt) { - int i; + unsigned int i; REQUIRE(reqaddr != NULL); REQUIRE(matchelt == NULL || *matchelt == NULL); - for (i = 0; i < (int)acl->length; i++) { + for (i = 0; i < acl->length; i++) { dns_aclelement_t *e = &acl->elements[i]; if (dns_aclelement_match(reqaddr, reqsigner, e, env, matchelt)) { - *match = e->negative ? -(i+1) : (i+1); + *match = e->negative ? -((int)i+1) : ((int)i+1); return (ISC_R_SUCCESS); } }