]> sourceware.org Git - glibc.git/commitdiff
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 bacf51b1a2815918393655f9a49ebde1b0fc9e0b..84470703f1f306bf496d1fdce5cece0d01068148 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 002d4c938fd7856d97201478c344506221eaea7f..0430b7b573c7d1dd6a5054486a587c2fbf35ff60 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);
 
This page took 0.052354 seconds and 5 git commands to generate.