fix compiling with the latest gcc master origin/master
authorIan Kelling <iank@fsf.org>
Thu, 9 Oct 2025 20:14:09 +0000 (16:14 -0400)
committerIan Kelling <iank@fsf.org>
Thu, 9 Oct 2025 20:14:09 +0000 (16:14 -0400)
due to incorrect signature of the signal handler function.

Patch authored by Jamie Learmonth <jrlearmonth@gmail.com>

evhz.c

diff --git a/evhz.c b/evhz.c
index 950f727fcc6a7cd379fc76e153420878bfed6208..ff7b43cc1ec796d2fc164270a4369ea328c52141 100644 (file)
--- a/evhz.c
+++ b/evhz.c
@@ -39,7 +39,7 @@ typedef struct event_s {
 
 int quit = 0;
 
-void sigint() {
+void sigint(int sig) {
     quit = 1;
 }