summaryrefslogtreecommitdiff
path: root/sys/dev/wscons/wsdisplay.c
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2001-04-17 04:30:52 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2001-04-17 04:30:52 +0000
commitd471bc85066a41148d5a902c01901d37503aef8e (patch)
tree5aad893f43fec1ffb45e2e7732cf5e2bbdd7e3fd /sys/dev/wscons/wsdisplay.c
parentb63233435dd37169d9c0b9e875ca311a1e4bfd59 (diff)
Implement cnbell(), an optional entrypoint that rings the console bell; from
NetBSD. deraadt@ ok
Diffstat (limited to 'sys/dev/wscons/wsdisplay.c')
-rw-r--r--sys/dev/wscons/wsdisplay.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/wscons/wsdisplay.c b/sys/dev/wscons/wsdisplay.c
index 1f49627e85c..80055c0a71f 100644
--- a/sys/dev/wscons/wsdisplay.c
+++ b/sys/dev/wscons/wsdisplay.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsdisplay.c,v 1.22 2001/04/16 15:00:49 jbm Exp $ */
+/* $OpenBSD: wsdisplay.c,v 1.23 2001/04/17 04:30:51 aaron Exp $ */
/* $NetBSD: wsdisplay.c,v 1.37.4.1 2000/06/30 16:27:53 simonb Exp $ */
/*
@@ -233,7 +233,7 @@ void (*wsdisplay_cons_kbd_pollc) __P((dev_t, int));
static struct consdev wsdisplay_cons = {
NULL, NULL, wsdisplay_getc_dummy, wsdisplay_cnputc,
- wsdisplay_pollc, /* NULL, */ NODEV, CN_NORMAL
+ wsdisplay_pollc, NULL, NODEV, CN_NORMAL
};
#ifndef WSDISPLAY_DEFAULTSCREENS
@@ -1877,9 +1877,7 @@ wsdisplay_set_cons_kbd(get, poll, bell)
void (*bell) __P((dev_t, u_int, u_int, u_int));
{
wsdisplay_cons.cn_getc = get;
-#if 0
wsdisplay_cons.cn_bell = bell;
-#endif
wsdisplay_cons_kbd_pollc = poll;
}
@@ -1887,9 +1885,7 @@ void
wsdisplay_unset_cons_kbd()
{
wsdisplay_cons.cn_getc = wsdisplay_getc_dummy;
-#if 0
wsdisplay_cons.cn_bell = NULL;
-#endif
wsdisplay_cons_kbd_pollc = 0;
}