[asterisk-commits] rizzo: trunk r47187 - /trunk/res/res_agi.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Nov 3 18:40:50 MST 2006


Author: rizzo
Date: Fri Nov  3 19:40:49 2006
New Revision: 47187

URL: http://svn.digium.com/view/asterisk?rev=47187&view=rev
Log:
useless cast removal...


Modified:
    trunk/res/res_agi.c

Modified: trunk/res/res_agi.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_agi.c?rev=47187&r1=47186&r2=47187&view=diff
==============================================================================
--- trunk/res/res_agi.c (original)
+++ trunk/res/res_agi.c Fri Nov  3 19:40:49 2006
@@ -247,7 +247,7 @@
 		return launch_netscript(script, argv, fds, efd, opid);
 	
 	if (script[0] != '/') {
-		snprintf(tmp, sizeof(tmp), "%s/%s", (char *)ast_config_AST_AGI_DIR, script);
+		snprintf(tmp, sizeof(tmp), "%s/%s", ast_config_AST_AGI_DIR, script);
 		script = tmp;
 	}
 	if (pipe(toast)) {
@@ -686,7 +686,7 @@
 
 /*--- handle_saynumber: Say number in various language syntaxes ---*/
 /* Need to add option for gender here as well. Coders wanted */
-/* While waiting, we're sending a (char *) NULL.  */
+/* While waiting, we're sending a NULL.  */
 static int handle_saynumber(struct ast_channel *chan, AGI *agi, int argc, char *argv[])
 {
 	int res;
@@ -695,7 +695,7 @@
 		return RESULT_SHOWUSAGE;
 	if (sscanf(argv[2], "%d", &num) != 1)
 		return RESULT_SHOWUSAGE;
-	res = ast_say_number_full(chan, num, argv[3], chan->language, (char *) NULL, agi->audio, agi->ctrl);
+	res = ast_say_number_full(chan, num, argv[3], chan->language, NULL, agi->audio, agi->ctrl);
 	if (res == 1)
 		return RESULT_SUCCESS;
 	fdprintf(agi->fd, "200 result=%d\n", res);
@@ -1989,7 +1989,7 @@
 	struct ast_module_user *u;
 	char *argv[MAX_ARGS];
 	char buf[2048]="";
-	char *tmp = (char *)buf;
+	char *tmp = buf;
 	int argc = 0;
 	int fds[2];
 	int efd = -1;



More information about the asterisk-commits mailing list