diff --git a/pbx/ael/ael.flex b/pbx/ael/ael.flex index 2dc15aa4f04db0bd18749b070f0f3305543356f6..746930c49027f9dddbca71e7f468acd58e563635 100644 --- a/pbx/ael/ael.flex +++ b/pbx/ael/ael.flex @@ -29,7 +29,7 @@ #include "ael/ael.tab.h" #include "asterisk/ael_structs.h" -static char pbcstack[400]; +static char pbcstack[400]; /* XXX missing size checks */ static int pbcpos = 0; static int parencount = 0; @@ -45,7 +45,7 @@ void ael_yyset_column (int column_no , yyscan_t yyscanner); int ael_yyparse (struct parse_io *); static void pbcpush(char x); static int pbcpop(char x); -static void pbcwhere(char *text, int *line, int *col ); +static void pbcwhere(const char *text, int *line, int *col ); struct stackelement { char *fname; @@ -563,7 +563,10 @@ static int c_prevword(void) } #endif -static void pbcwhere(char *text, int *line, int *col ) +/* compute the total number of lines and columns in the text + * passed as argument. + */ +static void pbcwhere(const char *text, int *line, int *col ) { int loc_line = 0; int loc_col = 0; diff --git a/pbx/ael/ael_lex.c b/pbx/ael/ael_lex.c index 2e023e32296bac759f14832d3e5b9d5027a2ae6e..49087ddea0504a22666a7ce39a7f2a343573a4e4 100644 --- a/pbx/ael/ael_lex.c +++ b/pbx/ael/ael_lex.c @@ -664,7 +664,7 @@ static yyconst flex_int16_t yy_chk[553] = #include "ael/ael.tab.h" #include "asterisk/ael_structs.h" -static char pbcstack[400]; +static char pbcstack[400]; /* XXX missing size checks */ static int pbcpos = 0; static int parencount = 0; @@ -680,7 +680,7 @@ void ael_yyset_column (int column_no , yyscan_t yyscanner); int ael_yyparse (struct parse_io *); static void pbcpush(char x); static int pbcpop(char x); -static void pbcwhere(char *text, int *line, int *col ); +static void pbcwhere(const char *text, int *line, int *col ); struct stackelement { char *fname; @@ -2914,7 +2914,10 @@ static int c_prevword(void) } #endif -static void pbcwhere(char *text, int *line, int *col ) +/* compute the total number of lines and columns in the text + * passed as argument. + */ +static void pbcwhere(const char *text, int *line, int *col ) { int loc_line = 0; int loc_col = 0;