diff options
author | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-14 18:01:52 +0200 |
---|---|---|
committer | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-14 18:01:52 +0200 |
commit | f9a8fff2f90626aadd915178d04ece49d8c4884a (patch) | |
tree | 3e38a583fdb261b52d7bbf4964e5662c36c1971e /src | |
parent | 25708a111e0127aa86611f8a513cb67ae70b2123 (diff) |
switch to signal handlers that take no arguments for concrete signals
Diffstat (limited to 'src')
-rw-r--r-- | src/sig.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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() |