openbsd-ports/www/dillo/patches/patch-src_IO_dpi_c

16 lines
750 B
Plaintext
Raw Normal View History

$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. */
char *path1 = dStrconcat(dGethomedir(), "/.dillo/dpid", NULL);
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) {
dFree(path1);
2004-02-20 20:37:19 -05:00
- if (execlp("dpid", "dpid", NULL) == -1) {
+ if (execlp("dpid", "dpid", (void *)NULL) == -1) {
MSG("Dpi_start_dpid (child): %s\n", dStrerror(errno));
do
n = write(st_pipe[1], "ERROR", 5);