diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2004-03-21 01:46:43 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2004-03-21 01:46:43 +0000 |
commit | 831e4114da9f6db424a4cfac6316784641baf08d (patch) | |
tree | 71decbceedb48ec87236a8395594c50cf30fe678 /sbin/sysctl | |
parent | dcc3f9809583ffd05dd0bb0b4dfc10c41ed39067 (diff) |
CPU_LONGRUN is gone. repair kern.emul.nemuls, strcmp on right string
Diffstat (limited to 'sbin/sysctl')
-rw-r--r-- | sbin/sysctl/sysctl.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index 7ab606e27a2..52768e2826a 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysctl.c,v 1.111 2004/02/25 08:39:02 jmc Exp $ */ +/* $OpenBSD: sysctl.c,v 1.112 2004/03/21 01:46:42 tedu Exp $ */ /* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */ /* @@ -40,7 +40,7 @@ static const char copyright[] = #if 0 static const char sccsid[] = "@(#)sysctl.c 8.5 (Berkeley) 5/9/95"; #else -static const char rcsid[] = "$OpenBSD: sysctl.c,v 1.111 2004/02/25 08:39:02 jmc Exp $"; +static const char rcsid[] = "$OpenBSD: sysctl.c,v 1.112 2004/03/21 01:46:42 tedu Exp $"; #endif #endif /* not lint */ @@ -602,11 +602,6 @@ parse(char *string, int flags) break; } #endif -#ifdef CPU_LONGRUN - if (mib[1] == CPU_LONGRUN) - return; -#endif - break; case CTL_FS: @@ -2057,7 +2052,7 @@ sysctl_emul(char *string, char *newval, int flags) /* User specified a third level name */ target = strrchr(string, '.'); target++; - if (strcmp(string, "nemuls") == 0) { + if (strcmp(target, "nemuls") == 0) { if (newval) { warnx("Operation not permitted"); return (1); |