]> sourceware.org Git - newlib-cygwin.git/commitdiff
2005-05-17 Brian Dessent <brian@dessent.net>
authorBrian Dessent <brian@dessent.net>
Wed, 18 May 2005 01:10:06 +0000 (01:10 +0000)
committerBrian Dessent <brian@dessent.net>
Wed, 18 May 2005 01:10:06 +0000 (01:10 +0000)
* 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.

winsup/testsuite/ChangeLog
winsup/testsuite/winsup.api/ltp/execle01.c
winsup/testsuite/winsup.api/ltp/execlp01.c
winsup/testsuite/winsup.api/ltp/fcntl07.c
winsup/testsuite/winsup.api/ltp/fcntl07B.c
winsup/testsuite/winsup.api/signal-into-win32-api.c

index 7b2ec1a813bf5df41dd9fec715d3639bf518873d..bfe7413c3f154b105f01ab43f1ae0b745f4d9cb5 100644 (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,
index f7fcc82379e097fa095e2627ecf5c02251fe719c..ca2cdec4e83eb7a5bb1ea781fb68c2b0492aa578 100644 (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!!*/
index 383223c0732f282b7ecd1b7f45690a6a2a4d4ae0..c3f8b2147e65980478e4f11f2532089ad091c508 100644 (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!!*/
index d62eb7967b13a437610d11bef4fb736509a0457d..e0082df45f8d824b46daf7b9acbeef5c5c80c4e8 100644 (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",
index 405bf612702ba20d47874a462b082157f5a4bd6f..4e94ff26737085bda0248fb58d8516ddeb76a0f1 100644 (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",
index 26d0cd8e0e41bd2de1c6da3eccdc233335ca58e7..57ab8b5c816a2140de7929c1d2310c899d016a83 100755 (executable)
@@ -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;
This page took 0.039654 seconds and 5 git commands to generate.