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);
}
res = play_file(qe->chan, qe->parent->sound_thereare);
if (res)
goto playout;
- res = ast_say_number(qe->chan, qe->pos, AST_DIGIT_ANY, qe->chan->language, (char *) NULL); /* Needs gender */
+ res = ast_say_number(qe->chan, qe->pos, AST_DIGIT_ANY, qe->chan->language, NULL); /* Needs gender */
if (res)
goto playout;
res = play_file(qe->chan, qe->parent->sound_calls);
static int say_and_wait(struct ast_channel *chan, int num, const char *language)
{
int d;
- d = ast_say_number(chan, num, AST_DIGIT_ANY, language, (char *) NULL);
+ d = ast_say_number(chan, num, AST_DIGIT_ANY, language, NULL);
return d;
}