aboutsummaryrefslogtreecommitdiff
path: root/src/util/common_logging.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-04-26 17:45:06 +0000
committerChristian Grothoff <christian@grothoff.org>2012-04-26 17:45:06 +0000
commit01c524d5a9d16305e6d6a14000da2635548e96a0 (patch)
tree6fd6b6dc4d8ef00f80fdad1d60b20d17a3de43f3 /src/util/common_logging.c
parent1a6b585b5e75eae3840c0ac960e8ed962993ec53 (diff)
downloadgnunet-01c524d5a9d16305e6d6a14000da2635548e96a0.tar.gz
gnunet-01c524d5a9d16305e6d6a14000da2635548e96a0.zip
-document ignored return value
Diffstat (limited to 'src/util/common_logging.c')
-rw-r--r--src/util/common_logging.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/common_logging.c b/src/util/common_logging.c
index e19aa8c7c..995f2e88a 100644
--- a/src/util/common_logging.c
+++ b/src/util/common_logging.c
@@ -586,13 +586,13 @@ GNUNET_log_setup (const char *comp, const char *loglevel, const char *logfile)
586 if (GNUNET_stderr != NULL) 586 if (GNUNET_stderr != NULL)
587 fclose (GNUNET_stderr); 587 fclose (GNUNET_stderr);
588 dup_return = dup2 (altlog_fd, 2); 588 dup_return = dup2 (altlog_fd, 2);
589 close (altlog_fd); 589 (void) close (altlog_fd);
590 if (dup_return != -1) 590 if (dup_return != -1)
591 { 591 {
592 altlog = fdopen (2, "ab"); 592 altlog = fdopen (2, "ab");
593 if (altlog == NULL) 593 if (altlog == NULL)
594 { 594 {
595 close (2); 595 (void) close (2);
596 altlog_fd = -1; 596 altlog_fd = -1;
597 } 597 }
598 } 598 }