Module Name: src Committed By: lukem Date: Sat Apr 11 07:40:37 UTC 2009
Modified Files: src/sbin/cgdconfig: utils.c Log Message: fix sign-compare issues To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/sbin/cgdconfig/utils.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sbin/cgdconfig/utils.c diff -u src/sbin/cgdconfig/utils.c:1.19 src/sbin/cgdconfig/utils.c:1.20 --- src/sbin/cgdconfig/utils.c:1.19 Sun May 11 03:15:21 2008 +++ src/sbin/cgdconfig/utils.c Sat Apr 11 07:40:37 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: utils.c,v 1.19 2008/05/11 03:15:21 elric Exp $ */ +/* $NetBSD: utils.c,v 1.20 2009/04/11 07:40:37 lukem Exp $ */ /*- * Copyright (c) 2002, 2003 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: utils.c,v 1.19 2008/05/11 03:15:21 elric Exp $"); +__RCSID("$NetBSD: utils.c,v 1.20 2009/04/11 07:40:37 lukem Exp $"); #endif #include <sys/param.h> @@ -303,7 +303,7 @@ int bits_match(const bits_t *b1, const bits_t *b2) { - int i; + size_t i; if (b1->length != b2->length) return 0; @@ -319,7 +319,7 @@ bits_xor(const bits_t *x1, const bits_t *x2) { bits_t *b; - int i; + size_t i; b = emalloc(sizeof(*b)); b->length = MAX(x1->length, x2->length);