projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a6b585
)
-document ignored return value
author
Christian Grothoff
<christian@grothoff.org>
Thu, 26 Apr 2012 17:45:06 +0000
(17:45 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Thu, 26 Apr 2012 17:45:06 +0000
(17:45 +0000)
src/util/common_logging.c
patch
|
blob
|
history
diff --git
a/src/util/common_logging.c
b/src/util/common_logging.c
index e19aa8c7cd3303e765f6738e0908e8188969aeed..995f2e88a84a62f37517c7168e684624d5fa020d 100644
(file)
--- 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)
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;
}
}