Mercurial > pidgin
changeset 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 | 7d708210e317 |
children | bb38f32ab6aa |
files | console/libgnt/gntmain.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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();