diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-12-22 20:05:02 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-12-22 20:05:02 +0000 |
commit | 8fc9d71301a5db88592817fab8c7e2f680a41168 (patch) | |
tree | a98508d61e79906564029cdba69d465f059473ec /res | |
parent | cdd8a39685114812a242102020074aef3ce40449 (diff) |
Merged revisions 299448 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2
........
r299448 | tilghman | 2010-12-22 14:03:30 -0600 (Wed, 22 Dec 2010) | 8 lines
Resolve warnings by disambiguating the "s" extension as used by chan_dahdi from the "s" extension as used by the AEL macros.
(closes issue #18480)
Reported by: nivek
Patches:
20101215__issue18480__2.diff.txt uploaded by tilghman (license 14)
Tested by: nivek
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.8@299449 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r-- | res/ael/pval.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/res/ael/pval.c b/res/ael/pval.c index 7a4311bff..6fe21b5ca 100644 --- a/res/ael/pval.c +++ b/res/ael/pval.c @@ -3380,7 +3380,7 @@ static int gen_prios(struct ael_extension *exten, char *label, pval *statement, switch_set->app = strdup("Set"); } /* Are we likely inside a gosub subroutine? */ - if (!strcmp(mother_exten->name, "s") && first) { + if (!strcmp(mother_exten->name, "~~s~~") && first) { /* If we're not actually within a gosub, this will fail, but the * second time through, it will get set. If we are within gosub, * the second time through is redundant, but acceptable. */ @@ -3409,7 +3409,7 @@ static int gen_prios(struct ael_extension *exten, char *label, pval *statement, switch_set->app = strdup("Set"); } /* Are we likely inside a gosub subroutine? */ - if (!strcmp(exten->name, "s")) { + if (!strcmp(exten->name, "~~s~~")) { /* If we're not actually within a gosub, this will fail, but the * second time through, it will get set. If we are within gosub, * the second time through is redundant, but acceptable. */ @@ -3988,7 +3988,7 @@ static int gen_prios(struct ael_extension *exten, char *label, pval *statement, case PV_MACRO_CALL: pr = new_prio(); pr->type = AEL_APPCALL; - snprintf(buf1, BUF_SIZE, "%s,s,1", p->u1.str); + snprintf(buf1, BUF_SIZE, "%s,~~s~~,1", p->u1.str); first = 1; for (p2 = p->u2.arglist; p2; p2 = p2->next) { if (first) @@ -4459,7 +4459,7 @@ int ast_compile_ael2(struct ast_context **local_contexts, struct ast_hashtab *lo exten = new_exten(); exten->context = context; - exten->name = strdup("s"); + exten->name = strdup("~~s~~"); argc = 1; for (lp=p->u2.arglist; lp; lp=lp->next) { /* for each arg, set up a "Set" command */ |