about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--posix/tst-execle1.c2
-rw-r--r--posix/tst-execle2.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/posix/tst-execle1.c b/posix/tst-execle1.c
index bacf51b1a2..84470703f1 100644
--- a/posix/tst-execle1.c
+++ b/posix/tst-execle1.c
@@ -6,7 +6,7 @@ static int
 do_test (void)
 {
   static const char prog[] = "does-not-exist";
-  char *env [] = {"FOO=BAR", NULL};
+  const char *env [] = {"FOO=BAR", NULL};
   errno = 0;
   execle (prog, prog, NULL, env);
 
diff --git a/posix/tst-execle2.c b/posix/tst-execle2.c
index 002d4c938f..0430b7b573 100644
--- a/posix/tst-execle2.c
+++ b/posix/tst-execle2.c
@@ -45,7 +45,7 @@ prepare (int argc, char *argv[])
 static int
 do_test (void)
 {
-  char *env[] = {"FOO=BAR", NULL};
+  const char *env[] = {"FOO=BAR", NULL};
   errno = 0;
   execle (copy, copy, NULL, env);