summaryrefslogtreecommitdiff
path: root/trust
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2013-03-03 09:47:29 +0100
committerStef Walter <stefw@gnome.org>2013-03-03 10:07:08 +0100
commit38acf11889c1e1da2610c8e05f1f380f2a2a1ae6 (patch)
tree620bcadc424919895b17b5984eb3e3d1bdaa600d /trust
parent7823c9ddcb18b5155b3cc0e9d9f57ad0333d5eba (diff)
Use putenv() instead of setenv()
Since older operating systems don't support setenv()
Diffstat (limited to 'trust')
-rw-r--r--trust/tests/test-module.c2
-rw-r--r--trust/tests/test-parser.c2
-rw-r--r--trust/tests/test-session.c2
-rw-r--r--trust/tests/test-token.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/trust/tests/test-module.c b/trust/tests/test-module.c
index 0278fd3..42eea41 100644
--- a/trust/tests/test-module.c
+++ b/trust/tests/test-module.c
@@ -342,7 +342,7 @@ main (void)
CuSuite* suite = CuSuiteNew ();
int ret;
- setenv ("P11_KIT_STRICT", "1", 1);
+ putenv ("P11_KIT_STRICT=1");
p11_debug_init ();
/* p11_message_quiet (); */
diff --git a/trust/tests/test-parser.c b/trust/tests/test-parser.c
index 52092d0..931f85c 100644
--- a/trust/tests/test-parser.c
+++ b/trust/tests/test-parser.c
@@ -807,7 +807,7 @@ main (void)
CuSuite* suite = CuSuiteNew ();
int ret;
- setenv ("P11_KIT_STRICT", "1", 1);
+ putenv ("P11_KIT_STRICT=1");
p11_debug_init ();
p11_message_quiet ();
diff --git a/trust/tests/test-session.c b/trust/tests/test-session.c
index 48c9146..d77f461 100644
--- a/trust/tests/test-session.c
+++ b/trust/tests/test-session.c
@@ -141,7 +141,7 @@ main (void)
CuSuite* suite = CuSuiteNew ();
int ret;
- setenv ("P11_KIT_STRICT", "1", 1);
+ putenv ("P11_KIT_STRICT=1");
p11_debug_init ();
p11_message_quiet ();
diff --git a/trust/tests/test-token.c b/trust/tests/test-token.c
index 2ed1134..027a05e 100644
--- a/trust/tests/test-token.c
+++ b/trust/tests/test-token.c
@@ -88,7 +88,7 @@ main (void)
CuSuite* suite = CuSuiteNew ();
int ret;
- setenv ("P11_KIT_STRICT", "1", 1);
+ putenv ("P11_KIT_STRICT=1");
p11_debug_init ();
p11_message_quiet ();