25 lines
827 B
Plaintext
25 lines
827 B
Plaintext
$OpenBSD: patch-src_main_c,v 1.2 2010/05/22 20:59:08 espie Exp $
|
|
--- src/main.c.orig Wed May 22 01:06:25 2002
|
|
+++ src/main.c Sat May 22 15:49:42 2010
|
|
@@ -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;
|
|
}
|