Changing signal handlers to the correct type eliminates the last of the warning messages
authorArt Cancro <ajc@citadel.org>
Mon, 25 Oct 2021 17:25:17 +0000 (13:25 -0400)
committerArt Cancro <ajc@citadel.org>
Mon, 25 Oct 2021 17:25:17 +0000 (13:25 -0400)
textclient/screen.c
textclient/textclient.h

index eac342f4b0352cc25b42f6500959dbf4918fde80..3e0be4d989fca84ce4e056c5d77537205c780d49 100644 (file)
@@ -208,7 +208,7 @@ static volatile int caught_sigwinch = 0;
  * scr_winch() handles window size changes from SIGWINCH
  * resizes all our windows for us
  */
-sighandler_t scr_winch(int signum) {
+void scr_winch(int signum) {
        /* if we receive this signal, we must be running
         * in a terminal that supports resizing.
         */
index 51be112478821d72157fa05e16f8db9a050c0a42..4db12303dbabba15409d6ab179790bbe21fb3a49 100644 (file)
@@ -80,9 +80,6 @@ enum {
 #define COLOR_POP      17                      // Restore saved color
 #define ORIGINAL_PAIR  -1                      // Default terminal colors
 
-typedef void (*sighandler_t)(int);
-
-
 
 #include <stdlib.h>
 #include <unistd.h>
@@ -672,7 +669,7 @@ int scr_getc(int delay);
 int scr_putc(int c);
 void scr_flush(void);
 int scr_blockread(void);
-sighandler_t scr_winch(int signum);
+void scr_winch(int signum);
 void wait_indicator(int state);
 void ctdl_beep(void);
 void scr_wait_indicator(int);