openbsd-ports/x11/golem/patches/patch-src_main_c

25 lines
828 B
Plaintext

$OpenBSD: patch-src_main_c,v 1.1 2002/12/28 23:29:13 pvalchev Exp $
--- src/main.c.orig Sat Dec 28 15:12:59 2002
+++ src/main.c Sat Dec 28 15:13:47 2002
@@ -62,7 +62,7 @@ static RETSIGTYPE handle_sigsegv(int no)
warnx("segmentation fault; dumping a corefile and restarting");
if (!fork())
abort();
- execlp(binary_name, binary_name, NULL);
+ execlp(binary_name, binary_name, (void *)NULL);
exit(EXIT_FAILURE);
}
@@ -151,9 +151,9 @@ int main(int argc, char **argv) {
* execve the appropriate binary in our place.
*/
if (restart_bin == binary_name)
- execlp(binary_name, binary_name, NULL);
+ execlp(binary_name, binary_name, (void *)NULL);
else if (restart_bin != NULL)
- execl(_PATH_BSHELL, "sh", "-c", restart_bin, NULL);
+ execl(_PATH_BSHELL, "sh", "-c", restart_bin, (void *)NULL);
return 0;
}