diff options
author | Thilo Schulz <arny@ats.s.bawue.de> | 2011-08-05 13:33:15 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-10 23:26:57 +0000 |
commit | 30876f1accd3cfde76c6f52e31c869f6a95f60a8 (patch) | |
tree | d9093961aad44dae217d37f7d3a1aa8bb74ba5e6 /src/sys | |
parent | 03c2dab55aeba17d69189a7e2e02d66cc9dd587e (diff) |
Bug 5146 - Remove last of warnings under gcc 4.6.1 for Linux, patch by q3urt.undead@gmail.com
Diffstat (limited to 'src/sys')
-rw-r--r-- | src/sys/con_tty.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/src/sys/con_tty.c b/src/sys/con_tty.c index e4b2ad5c..8ab09256 100644 --- a/src/sys/con_tty.c +++ b/src/sys/con_tty.c @@ -90,14 +90,13 @@ send "\b \b" static void CON_Back( void ) { char key; - size_t size; key = '\b'; - size = write(STDOUT_FILENO, &key, 1); + write(STDOUT_FILENO, &key, 1); key = ' '; - size = write(STDOUT_FILENO, &key, 1); + write(STDOUT_FILENO, &key, 1); key = '\b'; - size = write(STDOUT_FILENO, &key, 1); + write(STDOUT_FILENO, &key, 1); } /* @@ -148,13 +147,12 @@ static void CON_Show( void ) ttycon_hide--; if (ttycon_hide == 0) { - size_t size; - size = write(STDOUT_FILENO, "]", 1); + write(STDOUT_FILENO, "]", 1); if (TTY_con.cursor) { for (i=0; i<TTY_con.cursor; i++) { - size = write(STDOUT_FILENO, TTY_con.buffer+i, 1); + write(STDOUT_FILENO, TTY_con.buffer+i, 1); } } } @@ -331,7 +329,6 @@ char *CON_Input( void ) int avail; char key; field_t *history; - size_t size; if(ttycon_on) { @@ -361,8 +358,8 @@ char *CON_Input( void ) Q_strncpyz(text, TTY_con.buffer, sizeof(text)); Field_Clear(&TTY_con); key = '\n'; - size = write(1, &key, 1); - size = write( 1, "]", 1 ); + write(1, &key, 1); + write( 1, "]", 1 ); return text; } if (key == '\t') @@ -426,7 +423,7 @@ char *CON_Input( void ) TTY_con.buffer[TTY_con.cursor] = key; TTY_con.cursor++; // print the current line (this is differential) - size = write(STDOUT_FILENO, &key, 1); + write(STDOUT_FILENO, &key, 1); } return NULL; |