2010-04-26 13:31:57 -04:00
|
|
|
$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);
|
|
|
|
}
|
2005-05-27 00:54:40 -04:00
|
|
|
exit(0);
|
|
|
|
}
|
2010-04-26 13:31:57 -04:00
|
|
|
@@ -57,7 +57,7 @@ void start_nmbd(void)
|
2005-05-27 00:54:40 -04:00
|
|
|
|
2010-04-26 13:31:57 -04:00
|
|
|
if (asprintf(&binfile, "%s/nmbd", get_dyn_SBINDIR()) > 0) {
|
|
|
|
become_daemon(true, false);
|
|
|
|
- execl(binfile, binfile, "-D", NULL);
|
|
|
|
+ execl(binfile, binfile, "-D", (void *)NULL);
|
|
|
|
}
|
2005-05-27 00:54:40 -04:00
|
|
|
exit(0);
|
|
|
|
}
|
2010-04-26 13:31:57 -04:00
|
|
|
@@ -77,7 +77,7 @@ void start_winbindd(void)
|
2005-05-27 00:54:40 -04:00
|
|
|
|
2010-04-26 13:31:57 -04:00
|
|
|
if (asprintf(&binfile, "%s/winbindd", get_dyn_SBINDIR()) > 0) {
|
|
|
|
become_daemon(true, false);
|
|
|
|
- execl(binfile, binfile, NULL);
|
|
|
|
+ execl(binfile, binfile, (void *)NULL);
|
|
|
|
}
|
2005-05-27 00:54:40 -04:00
|
|
|
exit(0);
|
|
|
|
}
|