aboutsummaryrefslogtreecommitdiffstats
path: root/daemon.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2006-03-14 12:06:04 +0000
committerMatthias Andree <matthias.andree@gmx.de>2006-03-14 12:06:04 +0000
commitd57b00768a8fa44d1e1c5f758440edabfa488baf (patch)
treedcdc77e502b4d251f05bc4f49f8ececebeb69df0 /daemon.c
parentcd5b84b42695f3a653df1e6692cf1bf5268a50f7 (diff)
downloadfetchmail-d57b00768a8fa44d1e1c5f758440edabfa488baf.tar.gz
fetchmail-d57b00768a8fa44d1e1c5f758440edabfa488baf.tar.bz2
fetchmail-d57b00768a8fa44d1e1c5f758440edabfa488baf.zip
Fix more compiler warnings.
svn path=/branches/BRANCH_6-3/; revision=4736
Diffstat (limited to 'daemon.c')
-rw-r--r--daemon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/daemon.c b/daemon.c
index dabfb9a6..7416437d 100644
--- a/daemon.c
+++ b/daemon.c
@@ -58,7 +58,6 @@ sigchld_handler (int sig)
/* process SIGCHLD to obtain the exit code of the terminating process */
{
pid_t pid;
-
#if defined(HAVE_WAITPID) /* the POSIX way */
int status;
@@ -79,9 +78,10 @@ sigchld_handler (int sig)
wait(&status);
#endif
lastsig = SIGCHLD;
+ (void)sig;
}
-RETSIGTYPE null_signal_handler(int sig) { }
+RETSIGTYPE null_signal_handler(int sig) { (void)sig; }
SIGHANDLERTYPE set_signal_handler(int sig, SIGHANDLERTYPE handler)
/*
@@ -132,7 +132,7 @@ void deal_with_sigchld(void)
}
int
-daemonize (const char *logfile, void (*termhook)(int))
+daemonize (const char *logfile)
/* detach from control TTY, become process group leader, catch SIGCHLD */
{
int fd;