From: Christian Grothoff Date: Sat, 5 Nov 2011 09:04:46 +0000 (+0000) Subject: use putenv instead of setenv for portability X-Git-Tag: initial-import-from-subversion-38251~16034 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=67a5d8d1aa00757d45aa952c614f137962d3acf5;p=oweals%2Fgnunet.git use putenv instead of setenv for portability --- 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[]) unsigned int failureCount = 0; unsigned int logs = 0; - if (0 != setenv ("GNUNET_FORCE_LOG", "", 1)) - fprintf (stderr, "Failed to setenv: %s\n", strerror (errno)); + if (0 != putenv ("GNUNET_FORCE_LOG=")) + fprintf (stderr, "Failed to putenv: %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);