OSSP CVS Repository

ossp - Check-in [4705]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4705
Date: 2004-Sep-12 13:52:33 (local)
2004-Sep-12 11:52:33 (UTC)
User:rse
Branch:
Comment: Use "(char *)NULL" instead of plain "NULL" in last argument to execl(2) to avoid GCC 3.5's "warning: missing sentinel in function call".
Tickets:
Inspections:
Files:
ossp-pkg/pth/ChangeLog      1.619 -> 1.620     4 inserted, 0 deleted
ossp-pkg/pth/pth_high.c      1.106 -> 1.107     1 inserted, 1 deleted

ossp-pkg/pth/ChangeLog 1.619 -> 1.620

--- ChangeLog    2004/09/12 11:44:25     1.619
+++ ChangeLog    2004/09/12 11:52:33     1.620
@@ -21,6 +21,10 @@
                   
   Changes between 2.0.1 and 2.0.2 (13-Jul-2003 to xx-XXX-2004)
 
+   *) Use "(char *)NULL" instead of plain "NULL" in last argument to
+      execl(2) to avoid GCC 3.5's "warning: missing sentinel in function call".
+      [Ralf S. Engelschall]
+
    *) Workaround Autoconf/m4 problems in pth.m4 by using "m4_define"
       instead of just "define" and no using m4_undefine at all.
       [Dr. Andreas Mueller <afm@othello.ch>]


ossp-pkg/pth/pth_high.c 1.106 -> 1.107

--- pth_high.c   2004/07/13 10:50:49     1.106
+++ pth_high.c   2004/09/12 11:52:33     1.107
@@ -252,7 +252,7 @@
             pth_scheduler_kill();
 
             /* execute the command through Bourne Shell */
-            execl(PTH_PATH_BINSH, "sh", "-c", cmd, NULL);
+            execl(PTH_PATH_BINSH, "sh", "-c", cmd, (char *)NULL);
 
             /* POSIX compliant return in case execution failed */
             exit(127);

CVSTrac 2.0.1