diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-01-07 13:31:37 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-01-07 13:31:37 +0000 |
commit | 4811a811d8eb224e0204305088e2f4c4524b5c53 (patch) | |
tree | 7fc0c484cec7b29efae56c69822ff26db84f8272 /sys/dev/wscons/wsemul_vt100var.h | |
parent | a59f96bb423e2e71d49d49e9c18c7b4286789731 (diff) |
Some dynamically allocated elements are not considered of vital importance
for the vt100 emulation to work well enough for most cases (i.e. alternate
character set tables, non-default tab settings, etc).
However, code did not always check if these elements had been successfully
allocated before trying to use them, or worse, would explicitely panic in
DIAGNOSTIC kernels.
Change this to work in a degraded mode (by ignoring related escape sequences)
instead.
Diffstat (limited to 'sys/dev/wscons/wsemul_vt100var.h')
-rw-r--r-- | sys/dev/wscons/wsemul_vt100var.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/wscons/wsemul_vt100var.h b/sys/dev/wscons/wsemul_vt100var.h index 1c9eb66c81b..69b921b4132 100644 --- a/sys/dev/wscons/wsemul_vt100var.h +++ b/sys/dev/wscons/wsemul_vt100var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: wsemul_vt100var.h,v 1.5 2004/12/23 21:47:47 miod Exp $ */ +/* $OpenBSD: wsemul_vt100var.h,v 1.6 2007/01/07 13:31:36 miod Exp $ */ /* $NetBSD: wsemul_vt100var.h,v 1.5 2000/04/28 21:56:17 mycroft Exp $ */ /* @@ -138,4 +138,4 @@ void wsemul_vt100_handle_dcs(struct wsemul_vt100_emuldata *); int wsemul_vt100_translate(void *cookie, keysym_t, char **); void vt100_initchartables(struct wsemul_vt100_emuldata *); -void vt100_setnrc(struct wsemul_vt100_emuldata *, int); +int vt100_setnrc(struct wsemul_vt100_emuldata *, int); |