diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-27 00:06:06 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-27 00:06:06 +0000 |
commit | d6eedb71ef1e4d537dd196d84ebb42e759e4dd73 (patch) | |
tree | 084b7ec0d8ea080973fc9caa6c9f5ca21b5157b1 /res/ael | |
parent | 9a64e65e148f5968f6547137d69b8122ac0e8d1a (diff) |
deal with more gcc 4.2 const pointer warnings
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@83978 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/ael')
-rw-r--r-- | res/ael/ael.tab.c | 8 | ||||
-rw-r--r-- | res/ael/ael.y | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/res/ael/ael.tab.c b/res/ael/ael.tab.c index 6f4dbe7ff..c6d2ce4a6 100644 --- a/res/ael/ael.tab.c +++ b/res/ael/ael.tab.c @@ -201,7 +201,7 @@ extern char *my_file; #ifdef AAL_ARGCHECK int ael_is_funcname(char *name); #endif -static char *ael_token_subst(char *mess); +static char *ael_token_subst(const char *mess); @@ -3269,11 +3269,11 @@ static char *token_equivs2[] = }; -static char *ael_token_subst(char *mess) +static char *ael_token_subst(const char *mess) { /* calc a length, malloc, fill, and return; yyerror had better free it! */ int len=0,i; - char *p; + const char *p; char *res, *s,*t; int token_equivs_entries = sizeof(token_equivs1)/sizeof(char*); @@ -3314,7 +3314,7 @@ static char *ael_token_subst(char *mess) void yyerror(YYLTYPE *locp, struct parse_io *parseio, char const *s) { - char *s2 = ael_token_subst((char *)s); + char *s2 = ael_token_subst(s); if (locp->first_line == locp->last_line) { ast_log(LOG_ERROR, "==== File: %s, Line %d, Cols: %d-%d: Error: %s\n", my_file, locp->first_line, locp->first_column, locp->last_column, s2); } else { diff --git a/res/ael/ael.y b/res/ael/ael.y index c1f04fd64..ed48d4866 100644 --- a/res/ael/ael.y +++ b/res/ael/ael.y @@ -46,7 +46,7 @@ extern char *my_file; #ifdef AAL_ARGCHECK int ael_is_funcname(char *name); #endif -static char *ael_token_subst(char *mess); +static char *ael_token_subst(const char *mess); %} @@ -714,11 +714,11 @@ static char *token_equivs2[] = }; -static char *ael_token_subst(char *mess) +static char *ael_token_subst(const char *mess) { /* calc a length, malloc, fill, and return; yyerror had better free it! */ int len=0,i; - char *p; + const char *p; char *res, *s,*t; int token_equivs_entries = sizeof(token_equivs1)/sizeof(char*); |