summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2016-10-19 16:39:02 +0000
committertb <tb@openbsd.org>2016-10-19 16:39:02 +0000
commit1e61f8980877d2c3584a1d01700c2daeed050cdc (patch)
treec36b5ba9ec8881184dcce8c6dca830c8501e9586 /usr.sbin/config
parentRemove support for fixed ECDH cipher suites - these is not widely supported (diff)
downloadwireguard-openbsd-1e61f8980877d2c3584a1d01700c2daeed050cdc.tar.xz
wireguard-openbsd-1e61f8980877d2c3584a1d01700c2daeed050cdc.zip
There used to be disabled code that used /dev/tty to determine the
terminal size. That code was removed a while ago, and now there is no longer any reason to open /dev/tty right before exiting init(). ok natano
Diffstat (limited to 'usr.sbin/config')
-rw-r--r--usr.sbin/config/ukc.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.sbin/config/ukc.c b/usr.sbin/config/ukc.c
index adfe620d396..ffc97d8176e 100644
--- a/usr.sbin/config/ukc.c
+++ b/usr.sbin/config/ukc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ukc.c,v 1.21 2016/10/16 17:50:00 tb Exp $ */
+/* $OpenBSD: ukc.c,v 1.22 2016/10/19 16:39:02 tb Exp $ */
/*
* Copyright (c) 1999-2001 Mats O Jansson. All rights reserved.
@@ -174,7 +174,7 @@ WARNING this kernel doesn't support pseudo devices.\n");
void
init(void)
{
- int i = 0, fd;
+ int i = 0;
struct cfdata *cd;
short *ln;
int *p;
@@ -208,7 +208,4 @@ init(void)
p = (int *)adjust((caddr_t)nl[I_PDEVSIZE].n_value);
maxpseudo = *p;
}
-
- if ((fd = open("/dev/tty", O_RDWR)) < 0)
- fd = 2;
}