Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/cpuctl Only complain about binding if we have more ...



details:   https://anonhg.NetBSD.org/src/rev/079182837f38
branches:  trunk
changeset: 784544:079182837f38
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Jan 31 19:47:59 2013 +0000

description:
Only complain about binding if we have more than 1 cpu. :)
(we always have more than 0).

diffstat:

 usr.sbin/cpuctl/cpuctl.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ca38d2581def -r 079182837f38 usr.sbin/cpuctl/cpuctl.c
--- a/usr.sbin/cpuctl/cpuctl.c  Thu Jan 31 19:16:11 2013 +0000
+++ b/usr.sbin/cpuctl/cpuctl.c  Thu Jan 31 19:47:59 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpuctl.c,v 1.21 2012/08/29 17:13:22 drochner Exp $     */
+/*     $NetBSD: cpuctl.c,v 1.22 2013/01/31 19:47:59 matt Exp $ */
 
 /*-
  * Copyright (c) 2007, 2008, 2009, 2012 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #ifndef lint
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: cpuctl.c,v 1.21 2012/08/29 17:13:22 drochner Exp $");
+__RCSID("$NetBSD: cpuctl.c,v 1.22 2013/01/31 19:47:59 matt Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -245,7 +245,7 @@
        id = getcpuid(argv);
        snprintf(name, sizeof(name), "cpu%u", id);
 
-       if (np != 0) {
+       if (np != 1) {
                cpuset = cpuset_create();
                if (cpuset == NULL)
                        err(EXIT_FAILURE, "cpuset_create");



Home | Main Index | Thread Index | Old Index