aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/syscons/schistory.c
diff options
context:
space:
mode:
authorKazutaka YOKOTA <yokota@FreeBSD.org>1999-09-19 08:58:53 +0000
committerKazutaka YOKOTA <yokota@FreeBSD.org>1999-09-19 08:58:53 +0000
commit8c12242c81b221abd46f84ddcf9428ee581efb2f (patch)
treeb5304859d4329a492ba354b4f8cd9c535b8c73c2 /sys/dev/syscons/schistory.c
parent7c61b15b97737afbd3549fa0778c2976e5533836 (diff)
downloadsrc-8c12242c81b221abd46f84ddcf9428ee581efb2f.tar.gz
src-8c12242c81b221abd46f84ddcf9428ee581efb2f.zip
- Hang the scr_stat struct from dev_t.
- Remove sc_get_scr_stat(). It's not necessary anymore. - Call ttymalloc() to allocate the struct tty for each vty, rather than statically declaring an array of struct tty. We still need a statically allocated struct tty for the first vty which is used for the kernel console I/O, though. - Likewise, call ttymalloc() for /dev/sysmouse and /dev/consolectl. - Delete unnecessary test on the pointer struct tty *tp in some functions. - Delete unused code in scmouse.c. WARNING: this change requires you to recompile screen savers!
Notes
Notes: svn path=/head/; revision=51404
Diffstat (limited to 'sys/dev/syscons/schistory.c')
-rw-r--r--sys/dev/syscons/schistory.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/syscons/schistory.c b/sys/dev/syscons/schistory.c
index 71c899143858..054345aae35e 100644
--- a/sys/dev/syscons/schistory.c
+++ b/sys/dev/syscons/schistory.c
@@ -38,6 +38,7 @@
#include <sys/param.h>
#include <sys/systm.h>
+#include <sys/conf.h>
#include <sys/tty.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
@@ -282,7 +283,7 @@ sc_hist_ioctl(struct tty *tp, u_long cmd, caddr_t data, int flag,
switch (cmd) {
case CONS_HISTORY: /* set history size */
- scp = sc_get_scr_stat(tp->t_dev);
+ scp = SC_STAT(tp->t_dev);
if (*(int *)data <= 0)
return EINVAL;
if (scp->status & BUFFER_SAVED)