aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-01 11:43:46 +0000
committermvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-01 11:43:46 +0000
commit90c6c1a9280029baa3b142c2aa11a65b1bdb8e9e (patch)
tree83ee9561bfd6ed307cdfb8e29b98162233e39bc4 /apps
parent9c3c3b59cd855c5c4347ced8be1e611c715d9dfd (diff)
make app_ices compile on OpenBSD.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@135058 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_ices.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/app_ices.c b/apps/app_ices.c
index 01f9675de..eb5980f93 100644
--- a/apps/app_ices.c
+++ b/apps/app_ices.c
@@ -93,16 +93,16 @@ static int icesencode(char *filename, int fd)
* But many places has it in /usr/bin
* As a last-ditch effort, try to use PATH
*/
- execl(path_LOCAL "ices2", "ices", filename, NULL);
- execl(path_BIN "ices2", "ices", filename, NULL);
- execlp("ices2", "ices", filename, NULL);
+ execl(path_LOCAL "ices2", "ices", filename, (char *)NULL);
+ execl(path_BIN "ices2", "ices", filename, (char *)NULL);
+ execlp("ices2", "ices", filename, (char *)NULL);
if (option_debug)
ast_log(LOG_DEBUG, "Couldn't find ices version 2, attempting to use ices version 1.");
- execl(path_LOCAL "ices", "ices", filename, NULL);
- execl(path_BIN "ices", "ices", filename, NULL);
- execlp("ices", "ices", filename, NULL);
+ execl(path_LOCAL "ices", "ices", filename, (char *)NULL);
+ execl(path_BIN "ices", "ices", filename, (char *)NULL);
+ execlp("ices", "ices", filename, (char *)NULL);
ast_log(LOG_WARNING, "Execute of ices failed, could not be found.\n");
close(fd);