diff options
author | Zack Middleton <zturtleman@gmail.com> | 2011-08-05 16:19:01 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-10 23:26:57 +0000 |
commit | 4844094aca6e108dca9782c864bf24aba4dbd669 (patch) | |
tree | 479289a450931f3536d988d15e170e05ab686ec4 | |
parent | 30876f1accd3cfde76c6f52e31c869f6a95f60a8 (diff) |
Use STDOUT_FILENO instead of 1 in con_tty.c
-rw-r--r-- | src/sys/con_tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sys/con_tty.c b/src/sys/con_tty.c index 8ab09256..20afab4c 100644 --- a/src/sys/con_tty.c +++ b/src/sys/con_tty.c @@ -358,8 +358,8 @@ char *CON_Input( void ) Q_strncpyz(text, TTY_con.buffer, sizeof(text)); Field_Clear(&TTY_con); key = '\n'; - write(1, &key, 1); - write( 1, "]", 1 ); + write(STDOUT_FILENO, &key, 1); + write(STDOUT_FILENO, "]", 1); return text; } if (key == '\t') |