2008-10-19 04:42:55 -04:00
|
|
|
$OpenBSD: patch-src_IO_dpi_c,v 1.8 2008/10/19 08:42:55 ajacoutot Exp $
|
|
|
|
--- src/IO/dpi.c.orig Sat Oct 18 11:09:20 2008
|
|
|
|
+++ src/IO/dpi.c Sat Oct 18 11:10:10 2008
|
|
|
|
@@ -302,9 +302,9 @@ static int Dpi_start_dpid(void)
|
2003-03-02 14:15:42 -05:00
|
|
|
/* This is the child process. Execute the command. */
|
2008-10-19 04:42:55 -04:00
|
|
|
char *path1 = dStrconcat(dGethomedir(), "/.dillo/dpid", NULL);
|
2006-09-22 00:13:19 -04:00
|
|
|
Dpi_close_fd(st_pipe[0]);
|
2004-02-20 20:37:19 -05:00
|
|
|
- if (execl(path1, "dpid", NULL) == -1) {
|
|
|
|
+ if (execl(path1, "dpid", (void *)NULL) == -1) {
|
2008-10-19 04:42:55 -04:00
|
|
|
dFree(path1);
|
2004-02-20 20:37:19 -05:00
|
|
|
- if (execlp("dpid", "dpid", NULL) == -1) {
|
|
|
|
+ if (execlp("dpid", "dpid", (void *)NULL) == -1) {
|
2008-10-19 04:42:55 -04:00
|
|
|
MSG("Dpi_start_dpid (child): %s\n", dStrerror(errno));
|
2006-09-22 00:13:19 -04:00
|
|
|
do
|
|
|
|
n = write(st_pipe[1], "ERROR", 5);
|