2005-12-27 Roland McGrath <roland@redhat.com>

* posix/tst-execle1.c (do_test): Add a const.
	* posix/tst-execle2.c (do_test): Likewise.
This commit is contained in:
Roland McGrath 2005-12-27 22:49:45 +00:00
parent 285a709ace
commit 89c47e9c50
2 changed files with 2 additions and 2 deletions

View 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);

View 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);