]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
make app_ices compile on OpenBSD.
authorMichiel van Baak <michiel@vanbaak.info>
Fri, 1 Aug 2008 11:43:46 +0000 (11:43 +0000)
committerMichiel van Baak <michiel@vanbaak.info>
Fri, 1 Aug 2008 11:43:46 +0000 (11:43 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@135058 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_ices.c

index 01f9675de31d032edd0a11159cf09e3476f30669..eb5980f937f47f567c9db77e2aff9cb3794b76a1 100644 (file)
@@ -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);