[quake3-commits] r2136 - trunk/code/sys

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Aug 5 12:19:01 EDT 2011


Author: ztm
Date: 2011-08-05 12:19:01 -0400 (Fri, 05 Aug 2011)
New Revision: 2136

Modified:
   trunk/code/sys/con_tty.c
Log:
Use STDOUT_FILENO instead of 1 in con_tty.c

Modified: trunk/code/sys/con_tty.c
===================================================================
--- trunk/code/sys/con_tty.c	2011-08-05 13:33:15 UTC (rev 2135)
+++ trunk/code/sys/con_tty.c	2011-08-05 16:19:01 UTC (rev 2136)
@@ -356,8 +356,8 @@
 					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')



More information about the quake3-commits mailing list