$OpenBSD: patch-lib_smbrun_c,v 1.3 2006/10/03 14:07:10 mbalmer Exp $
--- lib/smbrun.c.orig	Thu Apr 20 04:29:23 2006
+++ lib/smbrun.c	Mon Oct  2 18:38:41 2006
@@ -173,7 +173,7 @@ int smbrun(const char *cmd, int *outfd)
 	}
 #endif
 
-	execl("/bin/sh","sh","-c",cmd,NULL);  
+	execl("/bin/sh","sh","-c",cmd,(void *)NULL);  
 	
 	/* not reached */
 	exit(82);
@@ -301,7 +301,7 @@ int smbrunsecret(const char *cmd, const 
 	}
 #endif
 
-	execl("/bin/sh", "sh", "-c", cmd, NULL);  
+	execl("/bin/sh", "sh", "-c", cmd, (void *)NULL);  
 	
 	/* not reached */
 	exit(82);
