]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
putenv more portable
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 13 Jul 2010 14:05:06 +0000 (14:05 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 13 Jul 2010 14:05:06 +0000 (14:05 +0000)
git-svn-id: file:///svn/unbound/trunk@2195 be551aaa-1e26-0410-a405-d3ace91eadb9

testcode/testbound.c

index c28b8bca750ca14eeddc5eec508c02a636906b32..0f12c79969970be0ff91c280b935b4b253d69b92 100644 (file)
@@ -264,7 +264,7 @@ main(int argc, char* argv[])
        struct replay_scenario* scen = NULL;
 
        /* we do not want the test to depend on the timezone */
-       (void)setenv("TZ", "UTC", 1);
+       (void)putenv("TZ=UTC");
 
        log_init(NULL, 0, NULL);
        log_info("Start of %s testbound program.", PACKAGE_STRING);