Module Name:    src
Committed By:   lukem
Date:           Sun Apr 12 10:27:08 UTC 2009

Modified Files:
        src/usr.bin/getent: getent.c

Log Message:
fix sign-compare issue


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/usr.bin/getent/getent.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/getent/getent.c
diff -u src/usr.bin/getent/getent.c:1.15 src/usr.bin/getent/getent.c:1.16
--- src/usr.bin/getent/getent.c:1.15	Tue Feb 24 06:10:52 2009
+++ src/usr.bin/getent/getent.c	Sun Apr 12 10:27:08 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: getent.c,v 1.15 2009/02/24 06:10:52 yamt Exp $	*/
+/*	$NetBSD: getent.c,v 1.16 2009/04/12 10:27:08 lukem Exp $	*/
 
 /*-
  * Copyright (c) 2004-2006 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: getent.c,v 1.15 2009/02/24 06:10:52 yamt Exp $");
+__RCSID("$NetBSD: getent.c,v 1.16 2009/04/12 10:27:08 lukem Exp $");
 #endif /* not lint */
 
 #include <sys/socket.h>
@@ -594,7 +594,8 @@
 	static const char sfx[] = "=#:";
 	const char *db_array[] = { db, NULL };
 	char	*b, *cap;
-	int	i, j, rv, c;
+	int	i, rv, c;
+	size_t	j;
 	int	expand = 1, recurse = 0, pretty = 0;
 
 	assert(argc > 1);

Reply via email to