]> Pileus Git - ~andy/fetchmail/commitdiff
Remove unused-variable warning on NetBSD 5.
authorMatthias Andree <matthias.andree@gmx.de>
Fri, 5 Mar 2010 21:20:47 +0000 (22:20 +0100)
committerMatthias Andree <matthias.andree@gmx.de>
Fri, 5 Mar 2010 21:20:47 +0000 (22:20 +0100)
daemon.c

index 43230265d2272903bc3074246f59069b6a1dd824..5ae73ed69565c6bd0d299b85e503494d0d448100 100644 (file)
--- 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