Mon Mar 16 02:20:02 2009 UTC ()
fix sign-compare issue


(lukem)
diff -r1.46 -r1.47 src/libexec/rshd/rshd.c

cvs diff -r1.46 -r1.47 src/libexec/rshd/rshd.c (expand / switch to context diff)
--- src/libexec/rshd/rshd.c 2008/07/20 01:09:07 1.46
+++ src/libexec/rshd/rshd.c 2009/03/16 02:20:02 1.47
@@ -1,4 +1,4 @@
-/*	$NetBSD: rshd.c,v 1.46 2008/07/20 01:09:07 lukem Exp $	*/
+/*	$NetBSD: rshd.c,v 1.47 2009/03/16 02:20:02 lukem Exp $	*/
 
 /*
  * Copyright (C) 1998 WIDE Project.
@@ -69,7 +69,7 @@
 #if 0
 static char sccsid[] = "@(#)rshd.c	8.2 (Berkeley) 4/6/94";
 #else
-__RCSID("$NetBSD: rshd.c,v 1.46 2008/07/20 01:09:07 lukem Exp $");
+__RCSID("$NetBSD: rshd.c,v 1.47 2009/03/16 02:20:02 lukem Exp $");
 #endif
 #endif /* not lint */
 
@@ -309,7 +309,8 @@
 
 	u_char optbuf[BUFSIZ/3];
 	socklen_t optsize = sizeof(optbuf);
-	int ipproto, i;
+	int ipproto;
+	unsigned int i;
 	struct protoent *ip;
 
 	if ((ip = getprotobyname("ip")) != NULL)