aboutsummaryrefslogtreecommitdiffstats
path: root/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon.c')
-rw-r--r--daemon.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/daemon.c b/daemon.c
index 622b01e7..cda435d1 100644
--- a/daemon.c
+++ b/daemon.c
@@ -34,7 +34,7 @@
#include "fetchmail.h"
RETSIGTYPE
-sigchld_handler ()
+sigchld_handler (int sig)
/* process SIGCHLD/SIGCLD to obtain the exit code of the terminating process */
{
pid_t pid;
@@ -58,10 +58,8 @@ sigchld_handler ()
}
int
-daemonize (logfile, termhook)
+daemonize (const char *logfile, void (*termhook)(int))
/* detach from control TTY, become process group leader, catch SIGCHLD */
-const char *logfile;
-void (*termhook)(int);
{
int fd;
pid_t childpid;