summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2004-01-19 01:09:06 +0000
committertedu <tedu@openbsd.org>2004-01-19 01:09:06 +0000
commitd8f4e51fd77da859c712e8130c1a6fcefd0d177e (patch)
tree6ba542336a473b9beb62591b15d6971cf285ee78
parentRename a few defines to avoid namespace pollution. The only one used was 'READ' which is now 'NVREAD'. (diff)
downloadwireguard-openbsd-d8f4e51fd77da859c712e8130c1a6fcefd0d177e.tar.xz
wireguard-openbsd-d8f4e51fd77da859c712e8130c1a6fcefd0d177e.zip
little wflag fallout spotted by atle kristensen
-rw-r--r--sbin/sysctl/sysctl.c6
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);
}