[gaim-migrate @ 16886]

Sat, 19 Aug 2006 16:41:40 +0000

author
Sadrul Habib Chowdhury <sadrul@pidgin.im>
date
Sat, 19 Aug 2006 16:41:40 +0000
changeset 14271
d44d78fe12e0
parent 14270
710ef4096bac
child 14272
e1efc981a1ec

[gaim-migrate @ 16886]
Use STDIN_FILENO instead of 0 (does anyone know if they are different in some place?)

console/libgnt/gntmain.c file | annotate | diff | comparison | revisions
--- a/console/libgnt/gntmain.c	Sat Aug 19 13:44:47 2006 +0000
+++ b/console/libgnt/gntmain.c	Sat Aug 19 16:41:40 2006 +0000
@@ -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();

mercurial