$OpenBSD: patch-clients_mwm_WmFunction_c,v 1.3 2012/10/28 11:05:45 sthen Exp $
--- clients/mwm/WmFunction.c.orig	Mon Oct 22 15:50:39 2012
+++ clients/mwm/WmFunction.c	Wed Oct 24 21:18:52 2012
@@ -1113,12 +1113,12 @@ Boolean F_Exec (String args, ClientData *pCD, XEvent *
 		directory, then we must call execlp and not execl
 		*/
 		shellname = shell;
-		execlp (shell, shellname, "-c", args, 0);
+		execlp (shell, shellname, "-c", args, (void *)NULL);
 	    }
 	    else
 	    {
 		shellname++;
-		execl (shell, shellname, "-c", args, 0);
+		execl (shell, shellname, "-c", args, (void *)NULL);
 	    }
 	}
 
@@ -1127,9 +1127,9 @@ Boolean F_Exec (String args, ClientData *pCD, XEvent *
 	 * Try /bin/sh .
 	 */
 #ifdef SVR4
-        execl ("/usr/bin/sh", "sh", "-c", args, 0);
+        execl ("/usr/bin/sh", "sh", "-c", args, (void *)NULL);
 #else
-        execl ("/bin/sh", "sh", "-c", args, 0);
+        execl ("/bin/sh", "sh", "-c", args, (void *)NULL);
 #endif
 
 
