aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2009-07-16 09:26:21 -0400
committerJorge Arellano Cid <jcid@dillo.org>2009-07-16 09:26:21 -0400
commit8737e3f0c805a5c8f537208937a60fd12e652e20 (patch)
treec74b2486e0121b2de58a0b103de76dc7f00a29e7 /src
parenta9e31ae7a8b904f746e912da1d9ce8d0633f4117 (diff)
Cast NULL sentinel to (char*) for execl (fix for LP64 arch).
Diffstat (limited to 'src')
-rw-r--r--src/IO/dpi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/IO/dpi.c b/src/IO/dpi.c
index 963b3a14..3ad1c7ed 100644
--- a/src/IO/dpi.c
+++ b/src/IO/dpi.c
@@ -299,9 +299,9 @@ static int Dpi_start_dpid(void)
/* This is the child process. Execute the command. */
char *path1 = dStrconcat(dGethomedir(), "/.dillo/dpid", NULL);
Dpi_close_fd(st_pipe[0]);
- if (execl(path1, "dpid", NULL) == -1) {
+ if (execl(path1, "dpid", (char*)NULL) == -1) {
dFree(path1);
- if (execlp("dpid", "dpid", NULL) == -1) {
+ if (execlp("dpid", "dpid", (char*)NULL) == -1) {
MSG("Dpi_start_dpid (child): %s\n", dStrerror(errno));
do
n = write(st_pipe[1], "ERROR", 5);