Author: chromatic
Date: Tue Apr 17 18:24:06 2007
New Revision: 18273

Modified:
   trunk/config/gen/platform/generic/exec.c

Log:
Silence "missing sentinel" warnings on OpenBSD (Steve Peters, RT #42591).

Modified: trunk/config/gen/platform/generic/exec.c
==============================================================================
--- trunk/config/gen/platform/generic/exec.c    (original)
+++ trunk/config/gen/platform/generic/exec.c    Tue Apr 17 18:24:06 2007
@@ -32,7 +32,7 @@
            about to be something else */
         int status;
         status = execlp("sh", "sh", "-c",
-            string_to_cstring(interpreter, command), NULL);
+            string_to_cstring(interpreter, command), (void *)NULL);
         /* if we get here, something's horribly wrong... */
         if (status) {
             exit(status);
@@ -93,7 +93,7 @@
        about to be something else */
     int status;
     status = execlp("sh", "sh", "-c",
-            string_to_cstring(interpreter, command), NULL);
+            string_to_cstring(interpreter, command), (void *)NULL);
     /* if we get here, something's horribly wrong... */
     if (status) {
         internal_exception(NOSPAWN, "Exec failed, code %i", status);

Reply via email to