[asterisk-commits] kpfleming: trunk r83978 - in /trunk/res/ael: ael.tab.c ael.y
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Sep 26 19:06:06 CDT 2007
Author: kpfleming
Date: Wed Sep 26 19:06:06 2007
New Revision: 83978
URL: http://svn.digium.com/view/asterisk?view=rev&rev=83978
Log:
deal with more gcc 4.2 const pointer warnings
Modified:
trunk/res/ael/ael.tab.c
trunk/res/ael/ael.y
Modified: trunk/res/ael/ael.tab.c
URL: http://svn.digium.com/view/asterisk/trunk/res/ael/ael.tab.c?view=diff&rev=83978&r1=83977&r2=83978
==============================================================================
--- trunk/res/ael/ael.tab.c (original)
+++ trunk/res/ael/ael.tab.c Wed Sep 26 19:06:06 2007
@@ -201,7 +201,7 @@
#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 *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 @@
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 {
Modified: trunk/res/ael/ael.y
URL: http://svn.digium.com/view/asterisk/trunk/res/ael/ael.y?view=diff&rev=83978&r1=83977&r2=83978
==============================================================================
--- trunk/res/ael/ael.y (original)
+++ trunk/res/ael/ael.y Wed Sep 26 19:06:06 2007
@@ -46,7 +46,7 @@
#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 *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*);
More information about the asterisk-commits
mailing list