From 04d5ffafa1642cbdfa9283d3bd4543685c8746f9 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 19 Jan 2019 21:21:03 +0000 Subject: [PATCH] msx: static tty buffers --- Kernel/platform-msx1/devtty.c | 4 ++-- Kernel/platform-msx2/devtty.c | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Kernel/platform-msx1/devtty.c b/Kernel/platform-msx1/devtty.c index 9e7ffd04..d1c302a1 100644 --- a/Kernel/platform-msx1/devtty.c +++ b/Kernel/platform-msx1/devtty.c @@ -20,8 +20,8 @@ uint8_t keymap[11]; struct vt_repeat keyrepeat; uint8_t vtattr_cap; -char tbuf1[TTYSIZ]; -char tbuf2[TTYSIZ]; +static char tbuf1[TTYSIZ]; +static char tbuf2[TTYSIZ]; struct s_queue ttyinq[NUM_DEV_TTY + 1] = { /* ttyinq[0] is never used */ {NULL, NULL, NULL, 0, 0, 0}, diff --git a/Kernel/platform-msx2/devtty.c b/Kernel/platform-msx2/devtty.c index cea1765e..dd2b218e 100644 --- a/Kernel/platform-msx2/devtty.c +++ b/Kernel/platform-msx2/devtty.c @@ -16,11 +16,11 @@ __sfr __at 0x2F tty_debug; __sfr __at 0xAA kbd_row_set; __sfr __at 0xA9 kbd_row_read; -char tbuf1[TTYSIZ]; -char tbuf2[TTYSIZ]; -char tbuf3[TTYSIZ]; -char tbuf4[TTYSIZ]; -char tbuf5[TTYSIZ]; +static char tbuf1[TTYSIZ]; +static char tbuf2[TTYSIZ]; +static char tbuf3[TTYSIZ]; +static char tbuf4[TTYSIZ]; +static char tbuf5[TTYSIZ]; uint8_t curtty; uint8_t inputtty; -- 2.34.1