diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2010-02-28 13:53:28 +0100 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2010-02-28 14:11:19 +0100 |
commit | 944e10700c98f8ac71c2385fd96671167463fcf0 (patch) | |
tree | 92f215b977ee049b757b02cc8b398de644197222 /daemon.c | |
parent | e2baa1aa1cc0ec28d716228f150d29c632e57ade (diff) | |
download | fetchmail-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |