mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-28 09:37:10 -04:00
Negating an unsigned int is a bad idea. Make it an int instead. [RT #660]
This commit is contained in:
parent
cb2ad98ea4
commit
39bb14491f
1 changed files with 3 additions and 3 deletions
|
|
@ -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 <config.h>
|
||||
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue