diff options
author | Stef Walter <stefw@gnome.org> | 2013-03-03 09:47:29 +0100 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2013-03-03 10:07:08 +0100 |
commit | 38acf11889c1e1da2610c8e05f1f380f2a2a1ae6 (patch) | |
tree | 620bcadc424919895b17b5984eb3e3d1bdaa600d /common | |
parent | 7823c9ddcb18b5155b3cc0e9d9f57ad0333d5eba (diff) |
Use putenv() instead of setenv()
Since older operating systems don't support setenv()
Diffstat (limited to 'common')
-rw-r--r-- | common/tests/test-asn1.c | 2 | ||||
-rw-r--r-- | common/tests/test-attrs.c | 2 | ||||
-rw-r--r-- | common/tests/test-buffer.c | 2 | ||||
-rw-r--r-- | common/tests/test-oid.c | 2 | ||||
-rw-r--r-- | common/tests/test-x509.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/common/tests/test-asn1.c b/common/tests/test-asn1.c index 34e9129..0034623 100644 --- a/common/tests/test-asn1.c +++ b/common/tests/test-asn1.c @@ -96,7 +96,7 @@ main (void) CuSuite* suite = CuSuiteNew (); int ret; - setenv ("P11_KIT_STRICT", "1", 1); + putenv ("P11_KIT_STRICT=1"); p11_debug_init (); SUITE_ADD_TEST (suite, test_tlv_length); diff --git a/common/tests/test-attrs.c b/common/tests/test-attrs.c index ccbb801..09d0ace 100644 --- a/common/tests/test-attrs.c +++ b/common/tests/test-attrs.c @@ -575,7 +575,7 @@ main (void) CuSuite* suite = CuSuiteNew (); int ret; - setenv ("P11_KIT_STRICT", "1", 1); + putenv ("P11_KIT_STRICT=1"); p11_debug_init (); SUITE_ADD_TEST (suite, test_equal); diff --git a/common/tests/test-buffer.c b/common/tests/test-buffer.c index 9db5f83..baf7b73 100644 --- a/common/tests/test-buffer.c +++ b/common/tests/test-buffer.c @@ -192,7 +192,7 @@ main (void) CuSuite* suite = CuSuiteNew (); int ret; - setenv ("P11_KIT_STRICT", "1", 1); + putenv ("P11_KIT_STRICT=1"); p11_debug_init (); SUITE_ADD_TEST (suite, test_init_uninit); diff --git a/common/tests/test-oid.c b/common/tests/test-oid.c index 7c185ad..71b8278 100644 --- a/common/tests/test-oid.c +++ b/common/tests/test-oid.c @@ -116,7 +116,7 @@ main (void) CuSuite* suite = CuSuiteNew (); int ret; - setenv ("P11_KIT_STRICT", "1", 1); + putenv ("P11_KIT_STRICT=1"); p11_debug_init (); SUITE_ADD_TEST (suite, test_known_oids); diff --git a/common/tests/test-x509.c b/common/tests/test-x509.c index 6da26bf..08c269d 100644 --- a/common/tests/test-x509.c +++ b/common/tests/test-x509.c @@ -421,7 +421,7 @@ main (void) CuSuite* suite = CuSuiteNew (); int ret; - setenv ("P11_KIT_STRICT", "1", 1); + putenv ("P11_KIT_STRICT=1"); p11_debug_init (); SUITE_ADD_TEST (suite, test_parse_extended_key_usage); |