summaryrefslogtreecommitdiff
path: root/sbin/sysctl/sysctl.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2005-01-28 15:39:15 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2005-01-28 15:39:15 +0000
commitd947ea368d469e0aff79cd54df0cd4ff27754358 (patch)
tree16f4a4b6923ee2fcbeea414d8f7466ae2ca35f6a /sbin/sysctl/sysctl.c
parente8bb429d9bb8a1b5ca86c4fd1f58b4f1f35efe55 (diff)
Allow setting of kern.tty.*; now we can set kern.tty.maxptys. The kernel
itself will return an error if the user tries to set a read-only variable.
Diffstat (limited to 'sbin/sysctl/sysctl.c')
-rw-r--r--sbin/sysctl/sysctl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c
index 4fae2fc6a3a..b126ee35ed5 100644
--- a/sbin/sysctl/sysctl.c
+++ b/sbin/sysctl/sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysctl.c,v 1.116 2004/09/14 22:09:38 deraadt Exp $ */
+/* $OpenBSD: sysctl.c,v 1.117 2005/01/28 15:39:14 millert 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.116 2004/09/14 22:09:38 deraadt Exp $";
+static const char rcsid[] = "$OpenBSD: sysctl.c,v 1.117 2005/01/28 15:39:14 millert Exp $";
#endif
#endif /* not lint */
@@ -366,7 +366,6 @@ parse(char *string, int flags)
len = sysctl_tty(string, &bufp, mib, flags, &type);
if (len < 0)
return;
- newsize = 0;
break;
case KERN_NCHSTATS:
sysctl_nchstats(string, &bufp, mib, flags, &type);