gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r18011 - gnunet/src/util


From: gnunet
Subject: [GNUnet-SVN] r18011 - gnunet/src/util
Date: Sat, 5 Nov 2011 10:04:46 +0100

Author: grothoff
Date: 2011-11-05 10:04:46 +0100 (Sat, 05 Nov 2011)
New Revision: 18011

Modified:
   gnunet/src/util/test_common_logging.c
Log:
use putenv instead of setenv for portability

Modified: gnunet/src/util/test_common_logging.c
===================================================================
--- gnunet/src/util/test_common_logging.c       2011-11-05 01:56:35 UTC (rev 
18010)
+++ gnunet/src/util/test_common_logging.c       2011-11-05 09:04:46 UTC (rev 
18011)
@@ -43,8 +43,8 @@
   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);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]