[PATCH] Fix tst-execle1/tst-execle2
Thorsten Kukuk
kukuk@suse.de
Tue Mar 29 11:04:00 GMT 2005
Hi,
I get the following warnings with current gcc4:
tst-execle1.c:10: warning: missing sentinel in function call
tst-execle2.c:49: warning: missing sentinel in function call
A fix is attached.
Thorsten
--
Thorsten Kukuk http://www.suse.de/~kukuk/ kukuk@suse.de
SUSE LINUX Products GmbH Maxfeldstr. 5 D-90409 Nuernberg
--------------------------------------------------------------------
Key fingerprint = A368 676B 5E1B 3E46 CFCE 2D97 F8FD 4E23 56C6 FB4B
-------------- next part --------------
2005-03-29 Thorsten Kukuk <kukuk@suse.de>
* posix/tst-execle1.c (do_test): Fix execle arguments.
* posix/tst-execle2.c (do_test): Likewise.
--- posix/tst-execle1.c 23 Feb 2005 02:42:55 -0000 1.1
+++ posix/tst-execle1.c 29 Mar 2005 08:06:30 -0000
@@ -6,8 +6,9 @@
do_test (void)
{
static const char prog[] = "does-not-exist";
+ char *env [] = {"FOO=BAR", NULL};
errno = 0;
- execle (prog, prog, NULL, "FOO=BAR", NULL);
+ execle (prog, prog, NULL, env);
if (errno != ENOENT)
{
--- posix/tst-execle2.c 23 Feb 2005 02:42:55 -0000 1.1
+++ posix/tst-execle2.c 29 Mar 2005 08:06:30 -0000
@@ -45,8 +45,9 @@
static int
do_test (void)
{
+ char *env[] = {"FOO=BAR", NULL};
errno = 0;
- execle (copy, copy, NULL, "FOO=BAR", NULL);
+ execle (copy, copy, NULL, env);
if (errno != EACCES)
{
More information about the Libc-hacker
mailing list