$OpenBSD: patch-web_startstop_c,v 1.3 2010/04/26 17:31:57 sthen Exp $
--- web/startstop.c.orig	Wed Jun  3 21:20:01 2009
+++ web/startstop.c	Wed Jun  3 21:21:18 2009
@@ -37,7 +37,7 @@ void start_smbd(void)
 
 	if (asprintf(&binfile, "%s/smbd", get_dyn_SBINDIR()) > 0) {
 		become_daemon(true, false);
-		execl(binfile, binfile, "-D", NULL);
+		execl(binfile, binfile, "-D", (void *)NULL);
 	}
 	exit(0);
 }
@@ -57,7 +57,7 @@ void start_nmbd(void)
 
 	if (asprintf(&binfile, "%s/nmbd", get_dyn_SBINDIR()) > 0) {
 		become_daemon(true, false);
-		execl(binfile, binfile, "-D", NULL);
+		execl(binfile, binfile, "-D", (void *)NULL);
 	}
 	exit(0);
 }
@@ -77,7 +77,7 @@ void start_winbindd(void)
 
 	if (asprintf(&binfile, "%s/winbindd", get_dyn_SBINDIR()) > 0) {
 		become_daemon(true, false);
-		execl(binfile, binfile, NULL);
+		execl(binfile, binfile, (void *)NULL);
 	}
 	exit(0);
 }
