From 39bb14491fa6d55c83b0a61dc07bf7864a726323 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Wed, 17 Jan 2001 02:58:28 +0000 Subject: [PATCH] Negating an unsigned int is a bad idea. Make it an int instead. [RT #660] --- lib/dns/acl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/dns/acl.c b/lib/dns/acl.c index ccd724e59c..4c595789e9 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.18 2001/01/09 21:50:36 bwelling Exp $ */ +/* $Id: acl.c,v 1.19 2001/01/17 02:58:28 bwelling Exp $ */ #include @@ -130,12 +130,12 @@ dns_acl_match(isc_netaddr_t *reqaddr, int *match, dns_aclelement_t **matchelt) { - unsigned int i; + int i; REQUIRE(reqaddr != NULL); REQUIRE(matchelt == NULL || *matchelt == NULL); - for (i = 0; i < acl->length; i++) { + for (i = 0; i < (int)acl->length; i++) { dns_aclelement_t *e = &acl->elements[i]; if (dns_aclelement_match(reqaddr, reqsigner,