From 944e10700c98f8ac71c2385fd96671167463fcf0 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sun, 28 Feb 2010 13:53:28 +0100 Subject: Remove unused assignments/initializations found with llvm-clang. --- daemon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'daemon.c') diff --git a/daemon.c b/daemon.c index cd60725f..43230265 100644 --- a/daemon.c +++ b/daemon.c @@ -61,7 +61,7 @@ sigchld_handler (int sig) #if defined(HAVE_WAITPID) /* the POSIX way */ int status; - while ((pid = waitpid(-1, &status, WNOHANG)) > 0) + while (waitpid(-1, &status, WNOHANG) > 0) continue; /* swallow 'em up. */ #elif defined(HAVE_WAIT3) /* the BSD way */ #if defined(HAVE_UNION_WAIT) && !defined(__FreeBSD__) @@ -208,7 +208,7 @@ nottyDetach: (void)close(0); /* Reopen stdin descriptor on /dev/null */ - if ((fd = open("/dev/null", O_RDWR)) < 0) { /* stdin */ + if (open("/dev/null", O_RDWR) < 0) { /* stdin */ report(stderr, "cannot open /dev/null: %s\n", strerror(errno)); return(PS_IOERR); } -- cgit v1.2.3