-document ignored return value
authorChristian Grothoff <christian@grothoff.org>
Thu, 26 Apr 2012 17:45:06 +0000 (17:45 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 26 Apr 2012 17:45:06 +0000 (17:45 +0000)
src/util/common_logging.c

index e19aa8c7cd3303e765f6738e0908e8188969aeed..995f2e88a84a62f37517c7168e684624d5fa020d 100644 (file)
@@ -586,13 +586,13 @@ GNUNET_log_setup (const char *comp, const char *loglevel, const char *logfile)
     if (GNUNET_stderr != NULL)
       fclose (GNUNET_stderr);
     dup_return = dup2 (altlog_fd, 2);
-    close (altlog_fd);
+    (void) close (altlog_fd);
     if (dup_return != -1)
     {
       altlog = fdopen (2, "ab");
       if (altlog == NULL)
       {
-        close (2);
+        (void) close (2);
         altlog_fd = -1;
       }
     }