From 2ce96d4a0ce438e1b76fcd7481f91fd7841b84f3 Mon Sep 17 00:00:00 2001 From: victor Date: Mon, 8 Nov 2004 15:04:41 +0000 Subject: move two static struct termios tty_state, tty_new to local, they're not used in other place. remove unused global variable of 32 bytes @_@ git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2320 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/term.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mbbsd/term.c b/mbbsd/term.c index 9d766fe4..2b674340 100644 --- a/mbbsd/term.c +++ b/mbbsd/term.c @@ -9,14 +9,14 @@ int tputs(const char *str, int affcnt, int (*putc) (int)); char *tparm(const char *str,...); char *tgoto(const char *cap, int col, int row); -static struct termios tty_state, tty_new; - /* ----------------------------------------------------- */ /* basic tty control */ /* ----------------------------------------------------- */ void init_tty() { + struct termios tty_state, tty_new; + if (tcgetattr(1, &tty_state) < 0) { syslog(LOG_ERR, "tcgetattr(): %m"); return; @@ -92,8 +92,6 @@ term_init() return YEA; } -char term_buf[32]; - void do_move(int destcol, int destline) { -- cgit v1.2.3