2005-12-27 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@gnu.org>
Tue, 27 Dec 2005 22:49:45 +0000 (22:49 +0000)
committerRoland McGrath <roland@gnu.org>
Tue, 27 Dec 2005 22:49:45 +0000 (22:49 +0000)
* posix/tst-execle1.c (do_test): Add a const.
* posix/tst-execle2.c (do_test): Likewise.

posix/tst-execle1.c
posix/tst-execle2.c

index bacf51b..8447070 100644 (file)
@@ -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);
 
index 002d4c9..0430b7b 100644 (file)
@@ -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);