summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty_pts.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2006-01-28 23:31:19 +0000
committerrwatson <rwatson@FreeBSD.org>2006-01-28 23:31:19 +0000
commit252cbc497372b95563c8da2a5f384597fa6264c1 (patch)
treea2cb9752712f56d92d0fdd7cc37c4d72646f9407 /sys/kern/tty_pts.c
parent0ee4f07a23fdada690fae1a62990fe87d59a0efd (diff)
downloadFreeBSD-src-252cbc497372b95563c8da2a5f384597fa6264c1.zip
FreeBSD-src-252cbc497372b95563c8da2a5f384597fa6264c1.tar.gz
Rename use_old_pty variable to use_pts, as this more accurately reflects
the sense of the variable. Suggested by: dwhite
Diffstat (limited to 'sys/kern/tty_pts.c')
-rw-r--r--sys/kern/tty_pts.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/kern/tty_pts.c b/sys/kern/tty_pts.c
index a91282d..5a2f31a 100644
--- a/sys/kern/tty_pts.c
+++ b/sys/kern/tty_pts.c
@@ -158,21 +158,20 @@ static LIST_HEAD(,pt_desc) pt_free_list;
static unsigned int next_avail_nb;
-static int use_old_pty = 0;
+static int use_pts = 0;
static unsigned int max_pts = 1000;
static unsigned int nb_allocated;
-TUNABLE_INT("kern.pts.enable", &use_old_pty);
+TUNABLE_INT("kern.pts.enable", &use_pts);
SYSCTL_NODE(_kern, OID_AUTO, pts, CTLFLAG_RD, 0, "pts");
-SYSCTL_INT(_kern_pts, OID_AUTO, enable, CTLFLAG_RW, &use_old_pty, 0,
+SYSCTL_INT(_kern_pts, OID_AUTO, enable, CTLFLAG_RW, &use_pts, 0,
"enable pts");
-SYSCTL_INT(_kern_pts, OID_AUTO, max, CTLFLAG_RW, &max_pts, 0,
- "max pts");
+SYSCTL_INT(_kern_pts, OID_AUTO, max, CTLFLAG_RW, &max_pts, 0, "max pts");
/*
* If there's a free pty descriptor in the pty descriptor list, retrieve it.
OpenPOWER on IntegriCloud