Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/rump_allserver Do like the comment suggests and don'...
details: https://anonhg.NetBSD.org/src/rev/67b548772695
branches: trunk
changeset: 789848:67b548772695
user: pooka <pooka%NetBSD.org@localhost>
date: Tue Sep 10 17:13:29 2013 +0000
description:
Do like the comment suggests and don't sanity-check the -c parameter here,
since we can't do it properly.
diffstat:
usr.bin/rump_allserver/rump_allserver.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
diffs (38 lines):
diff -r b8518ef26e90 -r 67b548772695 usr.bin/rump_allserver/rump_allserver.c
--- a/usr.bin/rump_allserver/rump_allserver.c Tue Sep 10 17:08:57 2013 +0000
+++ b/usr.bin/rump_allserver/rump_allserver.c Tue Sep 10 17:13:29 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rump_allserver.c,v 1.22 2011/09/16 15:39:28 joerg Exp $ */
+/* $NetBSD: rump_allserver.c,v 1.23 2013/09/10 17:13:29 pooka Exp $ */
/*-
* Copyright (c) 2010, 2011 Antti Kantee. All Rights Reserved.
@@ -27,7 +27,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: rump_allserver.c,v 1.22 2011/09/16 15:39:28 joerg Exp $");
+__RCSID("$NetBSD: rump_allserver.c,v 1.23 2013/09/10 17:13:29 pooka Exp $");
#endif /* !lint */
#include <sys/types.h>
@@ -121,7 +121,6 @@
unsigned netfs = 0, curetfs = 0;
int error;
int ch, sflag;
- int ncpu;
setprogname(argv[0]);
@@ -129,11 +128,6 @@
while ((ch = getopt(argc, argv, "c:d:l:m:r:sv")) != -1) {
switch (ch) {
case 'c':
- ncpu = atoi(optarg);
- /* XXX: MAXCPUS is from host, not from kernel */
- if (ncpu < 1 || ncpu > MAXCPUS)
- err(1, "CPU count needs to be between "
- "1 and %d\n", MAXCPUS);
setenv("RUMP_NCPU", optarg, 1);
break;
case 'd': {
Home |
Main Index |
Thread Index |
Old Index