From: <sa...@us...> - 2006-08-19 16:41:51
|
Revision: 16886 Author: sadrul Date: 2006-08-19 09:41:40 -0700 (Sat, 19 Aug 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16886&view=rev Log Message: ----------- Use STDIN_FILENO instead of 0 (does anyone know if they are different in some place?) Modified Paths: -------------- trunk/console/libgnt/gntmain.c Modified: trunk/console/libgnt/gntmain.c =================================================================== --- trunk/console/libgnt/gntmain.c 2006-08-19 16:13:55 UTC (rev 16885) +++ trunk/console/libgnt/gntmain.c 2006-08-19 16:41:40 UTC (rev 16886) @@ -437,7 +437,7 @@ gboolean ret = FALSE; static GntKeyPressMode mode = GNT_KP_MODE_NORMAL; - int rd = read(0, buffer, sizeof(buffer) - 1); + int rd = read(STDIN_FILENO, buffer, sizeof(buffer) - 1); if (rd < 0) { endwin(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |