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

16 lines
721 B
Plaintext
Raw Normal View History

$OpenBSD: patch-src_IO_dpi_c,v 1.7 2006/09/22 04:13:19 pvalchev Exp $
--- src/IO/dpi.c.orig Wed Mar 15 07:50:04 2006
+++ src/IO/dpi.c Tue Jun 20 21:20:04 2006
@@ -330,9 +330,9 @@
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");
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) {
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));
do
n = write(st_pipe[1], "ERROR", 5);