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:
23ea0db
)
use putenv instead of setenv for portability
author
Christian Grothoff
<christian@grothoff.org>
Sat, 5 Nov 2011 09:04:46 +0000
(09:04 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Sat, 5 Nov 2011 09:04:46 +0000
(09:04 +0000)
src/util/test_common_logging.c
patch
|
blob
|
history
diff --git
a/src/util/test_common_logging.c
b/src/util/test_common_logging.c
index cf291161ed3e7bcc48907aa59a5b391be6ff2999..d057db099cc074ff38ad94a2d412a57e7a9c3cda 100644
(file)
--- a/
src/util/test_common_logging.c
+++ b/
src/util/test_common_logging.c
@@
-43,8
+43,8
@@
main (int argc, char *argv[])
unsigned int failureCount = 0;
unsigned int logs = 0;
- if (0 !=
setenv ("GNUNET_FORCE_LOG", "", 1
))
- fprintf (stderr, "Failed to
se
tenv: %s\n", strerror (errno));
+ if (0 !=
putenv ("GNUNET_FORCE_LOG="
))
+ fprintf (stderr, "Failed to
pu
tenv: %s\n", strerror (errno));
GNUNET_log_setup ("test-common-logging", "DEBUG", "/dev/null");
GNUNET_logger_add (&my_log, &logs);
GNUNET_logger_add (&my_log, &logs);