Tue Mar 17 00:53:42 2009 UTC ()
fix sign-compare issues


(lukem)
diff -r1.38 -r1.39 src/sbin/route/show.c

cvs diff -r1.38 -r1.39 src/sbin/route/show.c (expand / switch to context diff)
--- src/sbin/route/show.c 2008/09/10 01:06:58 1.38
+++ src/sbin/route/show.c 2009/03/17 00:53:42 1.39
@@ -1,4 +1,4 @@
-/*	$NetBSD: show.c,v 1.38 2008/09/10 01:06:58 dyoung Exp $	*/
+/*	$NetBSD: show.c,v 1.39 2009/03/17 00:53:42 lukem Exp $	*/
 
 /*
  * Copyright (c) 1983, 1988, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "from: @(#)route.c	8.3 (Berkeley) 3/9/94";
 #else
-__RCSID("$NetBSD: show.c,v 1.38 2008/09/10 01:06:58 dyoung Exp $");
+__RCSID("$NetBSD: show.c,v 1.39 2009/03/17 00:53:42 lukem Exp $");
 #endif
 #endif /* not lint */
 
@@ -357,7 +357,7 @@
 	case AF_INET6:
 		cp = routename(sa, nm, flags);
 		/* make sure numeric address is not truncated */
-		if (strchr(cp, ':') != NULL && strlen(cp) > width)
+		if (strchr(cp, ':') != NULL && (int)strlen(cp) > width)
 			width = strlen(cp);
 		break;
 #endif /* INET6 */