From: Alan Cox Date: Sat, 19 Jan 2019 21:20:40 +0000 (+0000) Subject: coco2: static tty buffers X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=a5766da61ba8d13183165477e83469486eb18192;p=FUZIX.git coco2: static tty buffers --- diff --git a/Kernel/platform-coco2/devtty.c b/Kernel/platform-coco2/devtty.c index 016546df..dccfa002 100644 --- a/Kernel/platform-coco2/devtty.c +++ b/Kernel/platform-coco2/devtty.c @@ -16,8 +16,8 @@ uint8_t *uart_status = (uint8_t *)0xFF05; /* ACIA status */ uint8_t *uart_command = (uint8_t *)0xFF06; /* ACIA command */ uint8_t *uart_control = (uint8_t *)0xFF07; /* ACIA control */ -unsigned char tbuf1[TTYSIZ]; -unsigned char tbuf2[TTYSIZ]; +static unsigned char tbuf1[TTYSIZ]; +static unsigned 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-coco2cart/devtty.c b/Kernel/platform-coco2cart/devtty.c index a1e71605..466df67e 100644 --- a/Kernel/platform-coco2cart/devtty.c +++ b/Kernel/platform-coco2cart/devtty.c @@ -18,8 +18,8 @@ uint8_t *uart_control = (uint8_t *)0xFF07; /* ACIA control */ #define ACIA_TTY 2 -unsigned char tbuf1[TTYSIZ]; -unsigned char tbuf2[TTYSIZ]; +static unsigned char tbuf1[TTYSIZ]; +static unsigned char tbuf2[TTYSIZ]; struct s_queue ttyinq[NUM_DEV_TTY + 1] = { /* ttyinq[0] is never used */ {NULL, NULL, NULL, 0, 0, 0},