diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2009-07-16 09:26:21 -0400 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2009-07-16 09:26:21 -0400 |
commit | 8737e3f0c805a5c8f537208937a60fd12e652e20 (patch) | |
tree | c74b2486e0121b2de58a0b103de76dc7f00a29e7 /dpid/main.c | |
parent | a9e31ae7a8b904f746e912da1d9ce8d0633f4117 (diff) |
Cast NULL sentinel to (char*) for execl (fix for LP64 arch).
Diffstat (limited to 'dpid/main.c')
-rw-r--r-- | dpid/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dpid/main.c b/dpid/main.c index 83c23f9f..969ef690 100644 --- a/dpid/main.c +++ b/dpid/main.c @@ -68,7 +68,7 @@ static int start_filter_plugin(struct dp dpi_attr) } if (pid == 0) { /* Child, start plugin */ - if (execl(dpi_attr.path, dpi_attr.path, NULL) == -1) { + if (execl(dpi_attr.path, dpi_attr.path, (char*)NULL) == -1) { ERRMSG("start_plugin", "execl", errno); MSG_ERR("ERROR in child proc for %s\n", dpi_attr.path); exit(1); @@ -100,7 +100,7 @@ static void start_server_plugin(struct dp dpi_attr) MSG_ERR("ERROR in child proc for %s\n", dpi_attr.path); exit(1); } - if (execl(dpi_attr.path, dpi_attr.path, NULL) == -1) { + if (execl(dpi_attr.path, dpi_attr.path, (char*)NULL) == -1) { ERRMSG("start_plugin", "execl", errno); MSG_ERR("ERROR in child proc for %s\n", dpi_attr.path); exit(1); |