Mercurial > pidgin
comparison finch/libgnt/gntmain.c @ 22131:d5e8ee52ddcc
Use g_strerror() instead of strerror() in a few places.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Wed, 16 Jan 2008 19:12:46 +0000 |
parents | 76e0463db3aa |
children | d59cdfcb6ed1 |
comparison
equal
deleted
inserted
replaced
22129:dd51079b3d8c | 22131:d5e8ee52ddcc |
---|---|
231 rd = read(STDIN_FILENO, keys + HOLDING_ESCAPE, sizeof(keys) - 1 - HOLDING_ESCAPE); | 231 rd = read(STDIN_FILENO, keys + HOLDING_ESCAPE, sizeof(keys) - 1 - HOLDING_ESCAPE); |
232 if (rd < 0) | 232 if (rd < 0) |
233 { | 233 { |
234 int ch = getch(); /* This should return ERR, but let's see what it really returns */ | 234 int ch = getch(); /* This should return ERR, but let's see what it really returns */ |
235 endwin(); | 235 endwin(); |
236 printf("ERROR: %s\n", strerror(errno)); | 236 printf("ERROR: %s\n", g_strerror(errno)); |
237 printf("File descriptor is: %d\n\nGIOChannel is: %p\ngetch() = %d\n", STDIN_FILENO, source, ch); | 237 printf("File descriptor is: %d\n\nGIOChannel is: %p\ngetch() = %d\n", STDIN_FILENO, source, ch); |
238 raise(SIGABRT); | 238 raise(SIGABRT); |
239 } | 239 } |
240 else if (rd == 0) | 240 else if (rd == 0) |
241 { | 241 { |