2005-05-17 Brian Dessent <brian@dessent.net>

* winsup.api/signal-into-win32-api.c (main): Use 'NULL' instead of '0'
	in argument list to avoid compiler warning with gcc4.
	* winsup.api/ltp/execle01.c (main): Ditto.
	* winsup.api/ltp/execlp01.c (main): Ditto.
	* winsup.api/ltp/fcntl07.c (do_exec): Ditto.
	* winsup.api/ltp/fcntl07B.c (do_exec): Ditto.
This commit is contained in:
Brian Dessent 2005-05-18 01:10:06 +00:00
parent 5b59a2cc0d
commit 7f21d805a3
6 changed files with 14 additions and 5 deletions

View File

@ -1,3 +1,12 @@
2005-05-17 Brian Dessent <brian@dessent.net>
* winsup.api/signal-into-win32-api.c (main): Use 'NULL' instead of '0'
in argument list to avoid compiler warning with gcc4.
* winsup.api/ltp/execle01.c (main): Ditto.
* winsup.api/ltp/execlp01.c (main): Ditto.
* winsup.api/ltp/fcntl07.c (do_exec): Ditto.
* winsup.api/ltp/fcntl07B.c (do_exec): Ditto.
2005-02-10 Christopher Faylor <cgf@timesys.com>
* winsup.api/known_bugs.tcl: Remove dup05, fcntl07B, lseek04, select03,

View File

@ -172,7 +172,7 @@ main(int ac, char **av)
*/
switch(pid=fork()) {
case 0: /* CHILD - Call execle(2) */
execle("test", "test", 0, environ);
execle("test", "test", NULL, environ);
/* should not get here!! if we do, the parent will fail the Test Case */
exit(errno);
case -1: /* ERROR!!! exit now!!*/

View File

@ -171,7 +171,7 @@ main(int ac, char **av)
*/
switch(pid=fork()) {
case 0: /* CHILD - Call execlp(2) */
execlp("/usr/bin/test", "/usr/bin/test", 0);
execlp("/usr/bin/test", "/usr/bin/test", NULL);
/* should not get here!! if we do, the parent will fail the Test Case */
exit(errno);
case -1: /* ERROR!!! exit now!!*/

View File

@ -375,7 +375,7 @@ do_exec(const char *prog, int fd, const char *tcd)
case -1:
return(-1);
case 0: /* child */
execlp(prog, openck, "-T", pidname, 0);
execlp(prog, openck, "-T", pidname, NULL);
/* the ONLY reason to do this is to get the errno printed out */
fprintf(stderr, "exec(%s, %s, -T, %s) failed. Errno %s [%d]\n",

View File

@ -374,7 +374,7 @@ do_exec(const char *prog, int fd, const char *tcd)
case -1:
return(-1);
case 0: /* child */
execlp(prog, openck, "-T", pidname, 0);
execlp(prog, openck, "-T", pidname, NULL);
/* the ONLY reason to do this is to get the errno printed out */
fprintf(stderr, "exec(%s, %s, -T, %s) failed. Errno %s [%d]\n",

View File

@ -37,7 +37,7 @@ main (int argc, char** argv)
return 2;
}
else if (pid == 0)
execl ( argv[0], argv[0], "child", 0 );
execl ( argv[0], argv[0], "child", NULL );
else
{
sleep_stage = 0;