NULL does not need to be cast to (char *)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95069 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Luigi Rizzo
2007-12-27 23:13:15 +00:00
parent fb487bbc89
commit 5e041a46dc
3 changed files with 5 additions and 5 deletions

View File

@@ -86,11 +86,11 @@ static int icesencode(char *filename, int fd)
close(x);
}
/* Most commonly installed in /usr/local/bin */
execl(ICES, "ices", filename, (char *)NULL);
execl(ICES, "ices", filename, NULL);
/* But many places has it in /usr/bin */
execl(LOCAL_ICES, "ices", filename, (char *)NULL);
execl(LOCAL_ICES, "ices", filename, NULL);
/* As a last-ditch effort, try to use PATH */
execlp("ices", "ices", filename, (char *)NULL);
execlp("ices", "ices", filename, NULL);
ast_log(LOG_WARNING, "Execute of ices failed\n");
_exit(0);
}