From 5e041a46dc5a84d4819b9114c29fffddb051bee1 Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Thu, 27 Dec 2007 23:13:15 +0000 Subject: 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 --- apps/app_ices.c | 6 +++--- apps/app_queue.c | 2 +- apps/app_voicemail.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/app_ices.c b/apps/app_ices.c index b2a4e9b91..88d118f08 100644 --- a/apps/app_ices.c +++ b/apps/app_ices.c @@ -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); } diff --git a/apps/app_queue.c b/apps/app_queue.c index 323ab4d8c..ad39a78cd 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1704,7 +1704,7 @@ static int say_position(struct queue_ent *qe, int ringing) 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); diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index ad4bf4619..22254f062 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -3403,7 +3403,7 @@ static int resequence_mailbox(struct ast_vm_user *vmu, char *dir) 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; } -- cgit v1.2.3