summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-11-08 23:04:41 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-11-08 23:04:41 +0800
commit2ce96d4a0ce438e1b76fcd7481f91fd7841b84f3 (patch)
tree558995707442d4e189eb7c729eaf46e3e64d6490
parent9ae727ce327adc056b185798a1ccca256ae50860 (diff)
downloadpttbbs-2ce96d4a0ce438e1b76fcd7481f91fd7841b84f3.tar
pttbbs-2ce96d4a0ce438e1b76fcd7481f91fd7841b84f3.tar.gz
pttbbs-2ce96d4a0ce438e1b76fcd7481f91fd7841b84f3.tar.bz2
pttbbs-2ce96d4a0ce438e1b76fcd7481f91fd7841b84f3.tar.lz
pttbbs-2ce96d4a0ce438e1b76fcd7481f91fd7841b84f3.tar.xz
pttbbs-2ce96d4a0ce438e1b76fcd7481f91fd7841b84f3.tar.zst
pttbbs-2ce96d4a0ce438e1b76fcd7481f91fd7841b84f3.zip
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
-rw-r--r--mbbsd/term.c6
1 files 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)
{