diff options
author | 2016-05-17 23:43:47 +0000 | |
---|---|---|
committer | 2016-05-17 23:43:47 +0000 | |
commit | 89e8e827065076b9ace9986dff9a83cb40ca1418 (patch) | |
tree | 82519d2b25a1aa8e1b68aaae63a377e8ea145e41 /sys/kern/tty.c | |
parent | Refactor the handling of pledge and the optional user string: The three (diff) | |
download | wireguard-openbsd-89e8e827065076b9ace9986dff9a83cb40ca1418.tar.xz wireguard-openbsd-89e8e827065076b9ace9986dff9a83cb40ca1418.zip |
Allow sendsyslog(2) with LOG_CONS even when /dev/console has not
been opened during init(8). Only log with cnwrite() if cn_devvp
exists, otherwise use cnputc() as fallback. While there move extern
declarations to dev/cons.h.
input and OK deraadt@
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r-- | sys/kern/tty.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index 8a02edb030d..b64ad17ec84 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.130 2016/03/19 12:04:15 natano Exp $ */ +/* $OpenBSD: tty.c,v 1.131 2016/05/17 23:43:47 bluhm Exp $ */ /* $NetBSD: tty.c,v 1.68.4.2 1996/06/06 16:04:52 thorpej Exp $ */ /*- @@ -201,8 +201,6 @@ ttyopen(dev_t device, struct tty *tp, struct proc *p) int ttyclose(struct tty *tp) { - extern struct tty *constty; /* Temporary virtual console. */ - if (constty == tp) constty = NULL; @@ -719,7 +717,6 @@ ttyoutput(int c, struct tty *tp) int ttioctl(struct tty *tp, u_long cmd, caddr_t data, int flag, struct proc *p) { - extern struct tty *constty; /* Temporary virtual console. */ extern int nlinesw; struct process *pr = p->p_p; int s, error; |