aboutsummaryrefslogtreecommitdiffstats
path: root/daemon.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-03-05 22:20:47 +0100
committerMatthias Andree <matthias.andree@gmx.de>2010-03-05 22:20:47 +0100
commit80fadd29b0f30114d0e2a2870889b482ba6920a2 (patch)
tree880816643bb8e376288f72ed11db4692efd2f381 /daemon.c
parent7af830a55a6cb82ff4f7e1102f28e1def1b2e193 (diff)
downloadfetchmail-80fadd29b0f30114d0e2a2870889b482ba6920a2.tar.gz
fetchmail-80fadd29b0f30114d0e2a2870889b482ba6920a2.tar.bz2
fetchmail-80fadd29b0f30114d0e2a2870889b482ba6920a2.zip
Remove unused-variable warning on NetBSD 5.
Diffstat (limited to 'daemon.c')
-rw-r--r--daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon.c b/daemon.c
index 43230265..5ae73ed6 100644
--- a/daemon.c
+++ b/daemon.c
@@ -57,13 +57,13 @@ static RETSIGTYPE
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;
while (waitpid(-1, &status, WNOHANG) > 0)
continue; /* swallow 'em up. */
#elif defined(HAVE_WAIT3) /* the BSD way */
+ pid_t pid;
#if defined(HAVE_UNION_WAIT) && !defined(__FreeBSD__)
union wait status;
#else