qulogic/libgnt

Parents 64d8f26e11e2
Children fe1018b3b0f0
(13:48:49) Stu Tomlinson (nosnilmot): rlaager: printf() should probably
still use strerror()
  • +1 -1
    gntmain.c
  • --- a/gntmain.c Wed Jan 16 19:12:46 2008 +0000
    +++ b/gntmain.c Wed Jan 16 22:26:59 2008 +0000
    @@ -233,7 +233,7 @@
    {
    int ch = getch(); /* This should return ERR, but let's see what it really returns */
    endwin();
    - printf("ERROR: %s\n", g_strerror(errno));
    + printf("ERROR: %s\n", strerror(errno));
    printf("File descriptor is: %d\n\nGIOChannel is: %p\ngetch() = %d\n", STDIN_FILENO, source, ch);
    raise(SIGABRT);
    }