diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2004-01-19 01:09:07 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2004-01-19 01:09:07 +0000 |
commit | 44556ed4f297a8bb4fa0fbdadde9afcd17bb988d (patch) | |
tree | ecdadfd7c5eb57bd67cd1d1c905f7d5fc5aea014 | |
parent | f5ad059401369b1886ff9c2a962effdad1affbda (diff) |
little wflag fallout spotted by atle kristensen
-rw-r--r-- | sbin/sysctl/sysctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index 0f4b9f9f429..fdd09c3e030 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysctl.c,v 1.105 2004/01/11 22:19:18 grange Exp $ */ +/* $OpenBSD: sysctl.c,v 1.106 2004/01/19 01:09:06 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.105 2004/01/11 22:19:18 grange Exp $"; +static const char rcsid[] = "$OpenBSD: sysctl.c,v 1.106 2004/01/19 01:09:06 tedu Exp $"; #endif #endif /* not lint */ @@ -1997,7 +1997,7 @@ sysctl_emul(char *string, char *newval, int flags) head = "kern.emul."; if (aflag || strcmp(string, "kern.emul") == 0) { - if (strcmp(string, "kern.emul") == 0) { + if (newval) { warnx("%s: specification is incomplete", string); return (1); } |