mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-21 09:10:36 +00:00
useless cast removal...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47187 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -247,7 +247,7 @@ static enum agi_result launch_script(char *script, char *argv[], int *fds, int *
|
|||||||
return launch_netscript(script, argv, fds, efd, opid);
|
return launch_netscript(script, argv, fds, efd, opid);
|
||||||
|
|
||||||
if (script[0] != '/') {
|
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;
|
script = tmp;
|
||||||
}
|
}
|
||||||
if (pipe(toast)) {
|
if (pipe(toast)) {
|
||||||
@@ -686,7 +686,7 @@ static int handle_getoption(struct ast_channel *chan, AGI *agi, int argc, char *
|
|||||||
|
|
||||||
/*--- handle_saynumber: Say number in various language syntaxes ---*/
|
/*--- handle_saynumber: Say number in various language syntaxes ---*/
|
||||||
/* Need to add option for gender here as well. Coders wanted */
|
/* 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[])
|
static int handle_saynumber(struct ast_channel *chan, AGI *agi, int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int res;
|
int res;
|
||||||
@@ -695,7 +695,7 @@ static int handle_saynumber(struct ast_channel *chan, AGI *agi, int argc, char *
|
|||||||
return RESULT_SHOWUSAGE;
|
return RESULT_SHOWUSAGE;
|
||||||
if (sscanf(argv[2], "%d", &num) != 1)
|
if (sscanf(argv[2], "%d", &num) != 1)
|
||||||
return RESULT_SHOWUSAGE;
|
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)
|
if (res == 1)
|
||||||
return RESULT_SUCCESS;
|
return RESULT_SUCCESS;
|
||||||
fdprintf(agi->fd, "200 result=%d\n", res);
|
fdprintf(agi->fd, "200 result=%d\n", res);
|
||||||
@@ -1989,7 +1989,7 @@ static int agi_exec_full(struct ast_channel *chan, void *data, int enhanced, int
|
|||||||
struct ast_module_user *u;
|
struct ast_module_user *u;
|
||||||
char *argv[MAX_ARGS];
|
char *argv[MAX_ARGS];
|
||||||
char buf[2048]="";
|
char buf[2048]="";
|
||||||
char *tmp = (char *)buf;
|
char *tmp = buf;
|
||||||
int argc = 0;
|
int argc = 0;
|
||||||
int fds[2];
|
int fds[2];
|
||||||
int efd = -1;
|
int efd = -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user