From cb236290e267f17d5f81a18d742b81f1b74b05a2 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 8 Nov 1996 17:51:52 +0000 Subject: Prototypes everywhere. svn path=/trunk/; revision=515 --- daemon.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'daemon.c') 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; -- cgit v1.2.3