From 89c47e9c50290dd946ec4ac94baf81ae3d5da493 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 27 Dec 2005 22:49:45 +0000 Subject: 2005-12-27 Roland McGrath * posix/tst-execle1.c (do_test): Add a const. * posix/tst-execle2.c (do_test): Likewise. --- posix/tst-execle1.c | 2 +- posix/tst-execle2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posix/tst-execle1.c b/posix/tst-execle1.c index bacf51b..8447070 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 002d4c9..0430b7b 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); -- cgit v1.1