From 0baa56636a742d04298646099681d1dfa838d668 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Mon, 25 Oct 2021 13:25:17 -0400 Subject: [PATCH] Changing signal handlers to the correct type eliminates the last of the warning messages --- textclient/screen.c | 2 +- textclient/textclient.h | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/textclient/screen.c b/textclient/screen.c index eac342f4b..3e0be4d98 100644 --- a/textclient/screen.c +++ b/textclient/screen.c @@ -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. */ diff --git a/textclient/textclient.h b/textclient/textclient.h index 51be11247..4db12303d 100644 --- a/textclient/textclient.h +++ b/textclient/textclient.h @@ -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 #include @@ -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); -- 2.39.2