comparison console/libgnt/gntmain.c @ 14209:2925098c9b95

[gaim-migrate @ 16886] Use STDIN_FILENO instead of 0 (does anyone know if they are different in some place?) committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 19 Aug 2006 16:41:40 +0000
parents c3f5ac1f57a9
children e9dd2f76e61b
comparison
equal deleted inserted replaced
14208:7d708210e317 14209:2925098c9b95
435 { 435 {
436 char buffer[256]; 436 char buffer[256];
437 gboolean ret = FALSE; 437 gboolean ret = FALSE;
438 static GntKeyPressMode mode = GNT_KP_MODE_NORMAL; 438 static GntKeyPressMode mode = GNT_KP_MODE_NORMAL;
439 439
440 int rd = read(0, buffer, sizeof(buffer) - 1); 440 int rd = read(STDIN_FILENO, buffer, sizeof(buffer) - 1);
441 if (rd < 0) 441 if (rd < 0)
442 { 442 {
443 endwin(); 443 endwin();
444 printf("ERROR!\n"); 444 printf("ERROR!\n");
445 exit(1); 445 exit(1);