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

16 lines
773 B
Plaintext
Raw Normal View History

2004-02-20 20:37:19 -05:00
$OpenBSD: patch-src_IO_dpi_c,v 1.5 2004/02/21 01:37:19 couderc Exp $
--- src/IO/dpi.c.orig 2004-02-21 01:46:30.000000000 +0100
+++ src/IO/dpi.c 2004-02-21 01:46:42.000000000 +0100
@@ -334,9 +334,9 @@ static gint Dpi_start_dpid()
2003-03-02 14:15:42 -05:00
/* This is the child process. Execute the command. */
2004-02-20 20:37:19 -05:00
gchar *path1 = a_Misc_prepend_user_home(".dillo/dpid");
close(st_pipe[0]);
- if (execl(path1, "dpid", NULL) == -1) {
+ if (execl(path1, "dpid", (void *)NULL) == -1) {
2003-03-02 14:15:42 -05:00
g_free(path1);
2004-02-20 20:37:19 -05:00
- if (execlp("dpid", "dpid", NULL) == -1) {
+ if (execlp("dpid", "dpid", (void *)NULL) == -1) {
DEBUG_MSG(4, "Dpi_start_dpid (child): %s\n", g_strerror(errno));
write(st_pipe[1], "ERROR", 5);
close(st_pipe[1]);