summaryrefslogtreecommitdiff
path: root/src/sig.c
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-14 18:01:52 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-14 18:01:52 +0200
commitf9a8fff2f90626aadd915178d04ece49d8c4884a (patch)
tree3e38a583fdb261b52d7bbf4964e5662c36c1971e /src/sig.c
parent25708a111e0127aa86611f8a513cb67ae70b2123 (diff)
switch to signal handlers that take no arguments for concrete signals
Diffstat (limited to 'src/sig.c')
-rw-r--r--src/sig.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/sig.c b/src/sig.c
index 4c88143..e7c312e 100644
--- a/src/sig.c
+++ b/src/sig.c
@@ -19,9 +19,9 @@ void sig_alarmunblock()
sig_unblock(SIGALRM);
}
-void sig_alarmcatch(void (*f)(int))
+void sig_alarmcatch(void (*f)(void))
{
- sig_catch(SIGALRM, f);
+ sig_catch(SIGALRM, (void (*)(int))f);
}
void sig_alarmdefault()
@@ -92,9 +92,9 @@ void sig_childunblock()
sig_unblock(SIGCHLD);
}
-void sig_childcatch(void (*f)(int))
+void sig_childcatch(void (*f)(void))
{
- sig_catch(SIGCHLD, f);
+ sig_catch(SIGCHLD, (void (*)(int))f);
}
void sig_childdefault()
@@ -114,9 +114,9 @@ void sig_hangupunblock()
sig_unblock(SIGHUP);
}
-void sig_hangupcatch(void (*f)(int))
+void sig_hangupcatch(void (*f)(void))
{
- sig_catch(SIGHUP, f);
+ sig_catch(SIGHUP, (void (*)(int))f);
}
void sig_hangupdefault()
@@ -136,9 +136,9 @@ void sig_termunblock()
sig_unblock(SIGTERM);
}
-void sig_termcatch(f) void (*f)(int);
+void sig_termcatch(void (*f)(void))
{
- sig_catch(SIGTERM, f);
+ sig_catch(SIGTERM, (void (*)(int))f);
}
void sig_termdefault()