[asterisk-commits] rizzo: trunk r95069 - in /trunk/apps: app_ices.c app_queue.c app_voicemail.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Dec 27 17:13:15 CST 2007
Author: rizzo
Date: Thu Dec 27 17:13:15 2007
New Revision: 95069
URL: http://svn.digium.com/view/asterisk?view=rev&rev=95069
Log:
NULL does not need to be cast to (char *)
Modified:
trunk/apps/app_ices.c
trunk/apps/app_queue.c
trunk/apps/app_voicemail.c
Modified: trunk/apps/app_ices.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_ices.c?view=diff&rev=95069&r1=95068&r2=95069
==============================================================================
--- trunk/apps/app_ices.c (original)
+++ trunk/apps/app_ices.c Thu Dec 27 17:13:15 2007
@@ -86,11 +86,11 @@
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);
}
Modified: trunk/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_queue.c?view=diff&rev=95069&r1=95068&r2=95069
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Thu Dec 27 17:13:15 2007
@@ -1704,7 +1704,7 @@
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);
Modified: trunk/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_voicemail.c?view=diff&rev=95069&r1=95068&r2=95069
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Thu Dec 27 17:13:15 2007
@@ -3403,7 +3403,7 @@
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;
}
More information about the asterisk-commits
mailing list