From 831e4114da9f6db424a4cfac6316784641baf08d Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sun, 21 Mar 2004 01:46:43 +0000 Subject: CPU_LONGRUN is gone. repair kern.emul.nemuls, strcmp on right string --- sbin/sysctl/sysctl.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'sbin/sysctl') 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); -- cgit v1.2.3