aboutsummaryrefslogtreecommitdiffstats
path: root/daemon.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-02-28 13:53:28 +0100
committerMatthias Andree <matthias.andree@gmx.de>2010-02-28 14:11:19 +0100
commit944e10700c98f8ac71c2385fd96671167463fcf0 (patch)
tree92f215b977ee049b757b02cc8b398de644197222 /daemon.c
parente2baa1aa1cc0ec28d716228f150d29c632e57ade (diff)
downloadfetchmail-944e10700c98f8ac71c2385fd96671167463fcf0.tar.gz
fetchmail-944e10700c98f8ac71c2385fd96671167463fcf0.tar.bz2
fetchmail-944e10700c98f8ac71c2385fd96671167463fcf0.zip
Remove unused assignments/initializations found with llvm-clang.
Diffstat (limited to 'daemon.c')
-rw-r--r--daemon.c4
1 files changed, 2 insertions, 2 deletions
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);
}