diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-05 09:04:46 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-05 09:04:46 +0000 |
commit | 67a5d8d1aa00757d45aa952c614f137962d3acf5 (patch) | |
tree | aeb09166d922f5e7a7ae2df6f0df2496cb176408 /src/util | |
parent | 23ea0db15ba89a9603c9f2a433635f0edbb92e54 (diff) | |
download | gnunet-67a5d8d1aa00757d45aa952c614f137962d3acf5.tar.gz gnunet-67a5d8d1aa00757d45aa952c614f137962d3acf5.zip |
use putenv instead of setenv for portability
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/test_common_logging.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/test_common_logging.c b/src/util/test_common_logging.c index cf291161e..d057db099 100644 --- a/src/util/test_common_logging.c +++ b/src/util/test_common_logging.c | |||
@@ -43,8 +43,8 @@ main (int argc, char *argv[]) | |||
43 | unsigned int failureCount = 0; | 43 | unsigned int failureCount = 0; |
44 | unsigned int logs = 0; | 44 | unsigned int logs = 0; |
45 | 45 | ||
46 | if (0 != setenv ("GNUNET_FORCE_LOG", "", 1)) | 46 | if (0 != putenv ("GNUNET_FORCE_LOG=")) |
47 | fprintf (stderr, "Failed to setenv: %s\n", strerror (errno)); | 47 | fprintf (stderr, "Failed to putenv: %s\n", strerror (errno)); |
48 | GNUNET_log_setup ("test-common-logging", "DEBUG", "/dev/null"); | 48 | GNUNET_log_setup ("test-common-logging", "DEBUG", "/dev/null"); |
49 | GNUNET_logger_add (&my_log, &logs); | 49 | GNUNET_logger_add (&my_log, &logs); |
50 | GNUNET_logger_add (&my_log, &logs); | 50 | GNUNET_logger_add (&my_log, &logs); |