mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Change instances of AST_NONSTANDARD_APP_ARGS(foo, bar, ',') to AST_STANDARD_APP_ARGS(foo, bar)
(closes issue #11668, reported and patched by mvanbaak) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95994 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -968,7 +968,7 @@ static void load_rpt_vars(int n, int init)
|
|||||||
ast_copy_string(rpt_vars[n].p.tonezone, var->value, sizeof(rpt_vars[n].p.tonezone));
|
ast_copy_string(rpt_vars[n].p.tonezone, var->value, sizeof(rpt_vars[n].p.tonezone));
|
||||||
} else if (!strcmp(var->name, "tailmessagelist")) {
|
} else if (!strcmp(var->name, "tailmessagelist")) {
|
||||||
rpt_vars[n].p.tailmsgbuf = ast_strdup(var->value);
|
rpt_vars[n].p.tailmsgbuf = ast_strdup(var->value);
|
||||||
AST_NONSTANDARD_APP_ARGS(rpt_vars[n].p.tailmsg, rpt_vars[n].p.tailmsgbuf, ',');
|
AST_STANDARD_APP_ARGS(rpt_vars[n].p.tailmsg, rpt_vars[n].p.tailmsgbuf);
|
||||||
} else if (!strcmp(var->name, "memory")) {
|
} else if (!strcmp(var->name, "memory")) {
|
||||||
ast_copy_string(rpt_vars[n].p.memory, var->value, sizeof(rpt_vars[n].p.memory));
|
ast_copy_string(rpt_vars[n].p.memory, var->value, sizeof(rpt_vars[n].p.memory));
|
||||||
} else if (!strcmp(var->name, "macro")) {
|
} else if (!strcmp(var->name, "macro")) {
|
||||||
@@ -1005,7 +1005,7 @@ static void load_rpt_vars(int n, int init)
|
|||||||
#ifdef __RPT_NOTCH
|
#ifdef __RPT_NOTCH
|
||||||
} else if (!strcmp(var->name, "rxnotch")) {
|
} else if (!strcmp(var->name, "rxnotch")) {
|
||||||
char *tmp = ast_strdupa(val);
|
char *tmp = ast_strdupa(val);
|
||||||
AST_NONSTANDARD_APP_ARGS(strs, tmp, ',');
|
AST_STANDARD_APP_ARGS(strs, tmp);
|
||||||
strs.argc &= ~1; /* force an even number, rounded down */
|
strs.argc &= ~1; /* force an even number, rounded down */
|
||||||
if (strs.argc >= 2) {
|
if (strs.argc >= 2) {
|
||||||
for (j = 0; j < strs.argc; j += 2) {
|
for (j = 0; j < strs.argc; j += 2) {
|
||||||
@@ -2881,7 +2881,7 @@ static int function_ilink(struct rpt *myrpt, char *param, char *digits, int comm
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
s = ast_strdupa(val);
|
s = ast_strdupa(val);
|
||||||
AST_NONSTANDARD_APP_ARGS(args, s, ',');
|
AST_STANDARD_APP_ARGS(args, s);
|
||||||
rpt_mutex_lock(&myrpt->lock);
|
rpt_mutex_lock(&myrpt->lock);
|
||||||
l = myrpt->links.next;
|
l = myrpt->links.next;
|
||||||
/* try to find this one in queue */
|
/* try to find this one in queue */
|
||||||
@@ -2989,7 +2989,7 @@ static int function_ilink(struct rpt *myrpt, char *param, char *digits, int comm
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
s = ast_strdupa(val);
|
s = ast_strdupa(val);
|
||||||
AST_NONSTANDARD_APP_ARGS(args, s, ',');
|
AST_STANDARD_APP_ARGS(args, s);
|
||||||
rpt_mutex_lock(&myrpt->lock);
|
rpt_mutex_lock(&myrpt->lock);
|
||||||
l = myrpt->links.next;
|
l = myrpt->links.next;
|
||||||
/* try to find this one in queue */
|
/* try to find this one in queue */
|
||||||
@@ -3176,7 +3176,7 @@ static int function_autopatchup(struct rpt *myrpt, char *param, char *digitbuf,
|
|||||||
if (param) {
|
if (param) {
|
||||||
/* Process parameter list */
|
/* Process parameter list */
|
||||||
char *tmp = ast_strdupa(param);
|
char *tmp = ast_strdupa(param);
|
||||||
AST_NONSTANDARD_APP_ARGS(params, tmp, ',');
|
AST_STANDARD_APP_ARGS(params, tmp);
|
||||||
for (i = 0; i < params.argc; i++) {
|
for (i = 0; i < params.argc; i++) {
|
||||||
index = matchkeyword(params.list[i], &value, keywords);
|
index = matchkeyword(params.list[i], &value, keywords);
|
||||||
if (value)
|
if (value)
|
||||||
@@ -3461,7 +3461,7 @@ static int collect_function_digits(struct rpt *myrpt, char *digits, int command_
|
|||||||
|
|
||||||
/* Found a match, retrieve value part and parse */
|
/* Found a match, retrieve value part and parse */
|
||||||
stringp = ast_strdupa(vp->value);
|
stringp = ast_strdupa(vp->value);
|
||||||
AST_NONSTANDARD_APP_ARGS(args, stringp, ',');
|
AST_STANDARD_APP_ARGS(args, stringp);
|
||||||
|
|
||||||
ast_debug(1, "@@@@ action: %s, param = %s\n", args.action, S_OR(args.param, "(null)"));
|
ast_debug(1, "@@@@ action: %s, param = %s\n", args.action, S_OR(args.param, "(null)"));
|
||||||
/* Look up the action */
|
/* Look up the action */
|
||||||
@@ -4677,7 +4677,7 @@ static int function_remote(struct rpt *myrpt, char *param, char *digitbuf, int c
|
|||||||
return DC_COMPLETE;
|
return DC_COMPLETE;
|
||||||
}
|
}
|
||||||
s = ast_strdupa(val);
|
s = ast_strdupa(val);
|
||||||
AST_NONSTANDARD_APP_ARGS(args1, s, ',');
|
AST_STANDARD_APP_ARGS(args1, s);
|
||||||
if (args1.argc < 3)
|
if (args1.argc < 3)
|
||||||
return DC_ERROR;
|
return DC_ERROR;
|
||||||
ast_copy_string(myrpt->freq, args1.freq, sizeof(myrpt->freq));
|
ast_copy_string(myrpt->freq, args1.freq, sizeof(myrpt->freq));
|
||||||
@@ -5450,7 +5450,7 @@ static int attempt_reconnect(struct rpt *myrpt, struct rpt_link *l)
|
|||||||
remque((struct qelem *) l);
|
remque((struct qelem *) l);
|
||||||
rpt_mutex_unlock(&myrpt->lock);
|
rpt_mutex_unlock(&myrpt->lock);
|
||||||
s = ast_strdupa(val);
|
s = ast_strdupa(val);
|
||||||
AST_NONSTANDARD_APP_ARGS(args, s, ',');
|
AST_STANDARD_APP_ARGS(args, s);
|
||||||
|
|
||||||
/* XXX This section doesn't make any sense. Why not just use args.channel? XXX */
|
/* XXX This section doesn't make any sense. Why not just use args.channel? XXX */
|
||||||
snprintf(deststr, sizeof(deststr), "IAX2/%s", args.channel);
|
snprintf(deststr, sizeof(deststr), "IAX2/%s", args.channel);
|
||||||
|
@@ -275,7 +275,7 @@ static struct agent_pvt *add_agent(const char *agent, int pending)
|
|||||||
parse = ast_strdupa(agent);
|
parse = ast_strdupa(agent);
|
||||||
|
|
||||||
/* Extract username (agt), password and name from agent (args). */
|
/* Extract username (agt), password and name from agent (args). */
|
||||||
AST_NONSTANDARD_APP_ARGS(args, parse, ',');
|
AST_STANDARD_APP_ARGS(args, parse);
|
||||||
|
|
||||||
if(args.argc == 0) {
|
if(args.argc == 0) {
|
||||||
ast_log(LOG_WARNING, "A blank agent line!\n");
|
ast_log(LOG_WARNING, "A blank agent line!\n");
|
||||||
|
@@ -606,7 +606,7 @@ static int init_acf_query(struct ast_config *cfg, char *catg, struct acf_odbc_qu
|
|||||||
AST_DECLARE_APP_ARGS(write,
|
AST_DECLARE_APP_ARGS(write,
|
||||||
AST_APP_ARG(dsn)[5];
|
AST_APP_ARG(dsn)[5];
|
||||||
);
|
);
|
||||||
AST_NONSTANDARD_APP_ARGS(write, tmp2, ',');
|
AST_STANDARD_APP_ARGS(write, tmp2);
|
||||||
for (i = 0; i < 5; i++) {
|
for (i = 0; i < 5; i++) {
|
||||||
if (!ast_strlen_zero(write.dsn[i]))
|
if (!ast_strlen_zero(write.dsn[i]))
|
||||||
ast_copy_string((*query)->writehandle[i], write.dsn[i], sizeof((*query)->writehandle[i]));
|
ast_copy_string((*query)->writehandle[i], write.dsn[i], sizeof((*query)->writehandle[i]));
|
||||||
@@ -618,7 +618,7 @@ static int init_acf_query(struct ast_config *cfg, char *catg, struct acf_odbc_qu
|
|||||||
AST_DECLARE_APP_ARGS(read,
|
AST_DECLARE_APP_ARGS(read,
|
||||||
AST_APP_ARG(dsn)[5];
|
AST_APP_ARG(dsn)[5];
|
||||||
);
|
);
|
||||||
AST_NONSTANDARD_APP_ARGS(read, tmp2, ',');
|
AST_STANDARD_APP_ARGS(read, tmp2);
|
||||||
for (i = 0; i < 5; i++) {
|
for (i = 0; i < 5; i++) {
|
||||||
if (!ast_strlen_zero(read.dsn[i]))
|
if (!ast_strlen_zero(read.dsn[i]))
|
||||||
ast_copy_string((*query)->readhandle[i], read.dsn[i], sizeof((*query)->readhandle[i]));
|
ast_copy_string((*query)->readhandle[i], read.dsn[i], sizeof((*query)->readhandle[i]));
|
||||||
|
@@ -379,7 +379,7 @@ static int hash_read(struct ast_channel *chan, const char *cmd, char *data, char
|
|||||||
hashkeys_read(chan, "HASHKEYS", arg.hashname, colnames, sizeof(colnames));
|
hashkeys_read(chan, "HASHKEYS", arg.hashname, colnames, sizeof(colnames));
|
||||||
pbx_builtin_setvar_helper(chan, "~ODBCFIELDS~", colnames);
|
pbx_builtin_setvar_helper(chan, "~ODBCFIELDS~", colnames);
|
||||||
|
|
||||||
AST_NONSTANDARD_APP_ARGS(arg2, colnames, ',');
|
AST_STANDARD_APP_ARGS(arg2, colnames);
|
||||||
*buf = '\0';
|
*buf = '\0';
|
||||||
|
|
||||||
/* Now get the corresponding column values, in exactly the same order */
|
/* Now get the corresponding column values, in exactly the same order */
|
||||||
|
Reference in New Issue
Block a user