libgnt/libgnt

Replace strerror with g_strerror

2020-10-14, Gary Kramlich
20c59a277a74
Parents d9dbe0d9d065
Children 0af73f366d25
Replace strerror with g_strerror

Replace a strerror with g_strerror

Testing Done:
Compile only.

Reviewed at https://reviews.imfreedom.org/r/164/
  • +1 -1
    gntmain.c
  • --- a/gntmain.c Mon Sep 28 17:55:33 2020 -0500
    +++ b/gntmain.c Wed Oct 14 00:04:02 2020 -0500
    @@ -382,7 +382,7 @@
    {
    int ch = getch(); /* This should return ERR, but let's see what it really returns */
    endwin();
    - printf("ERROR: %s\n", strerror(errno));
    + printf("ERROR: %s\n", g_strerror(errno));
    printf("File descriptor is: %d\n\nGIOChannel is: %p\ngetch() = %d\n", STDIN_FILENO, source, ch);
    raise(SIGABRT);
    }