From 80fadd29b0f30114d0e2a2870889b482ba6920a2 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Fri, 5 Mar 2010 22:20:47 +0100 Subject: Remove unused-variable warning on NetBSD 5. --- daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3