Module Name:    src
Committed By:   lukem
Date:           Thu Apr 23 01:36:57 UTC 2009

Modified Files:
        src/usr.sbin/cpuctl: cpuctl.c

Log Message:
Fix -Wsign-compare issue


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/usr.sbin/cpuctl/cpuctl.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.sbin/cpuctl/cpuctl.c
diff -u src/usr.sbin/cpuctl/cpuctl.c:1.14 src/usr.sbin/cpuctl/cpuctl.c:1.15
--- src/usr.sbin/cpuctl/cpuctl.c:1.14	Sun Apr 19 14:11:38 2009
+++ src/usr.sbin/cpuctl/cpuctl.c	Thu Apr 23 01:36:56 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: cpuctl.c,v 1.14 2009/04/19 14:11:38 ad Exp $	*/
+/*	$NetBSD: cpuctl.c,v 1.15 2009/04/23 01:36:56 lukem Exp $	*/
 
 /*-
  * Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #ifndef lint
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: cpuctl.c,v 1.14 2009/04/19 14:11:38 ad Exp $");
+__RCSID("$NetBSD: cpuctl.c,v 1.15 2009/04/23 01:36:56 lukem Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -223,7 +223,7 @@
 		usage();
 
 	np = sysconf(_SC_NPROCESSORS_CONF);
-	if (id >= np)
+	if (id >= (u_long)np)
 		errx(EXIT_FAILURE, "Invalid CPU number");
 
 	return id;

Reply via email to