From 8737e3f0c805a5c8f537208937a60fd12e652e20 Mon Sep 17 00:00:00 2001 From: Jorge Arellano Cid Date: Thu, 16 Jul 2009 09:26:21 -0400 Subject: Cast NULL sentinel to (char*) for execl (fix for LP64 arch). --- dpid/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dpid') 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); -- cgit v1.2.3