git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@67560 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -2,7 +2,7 @@
#define GRASS_SQLPDEFS_H
int my_yyinput(char *buf, int max_size);
-void yyerror(char *s);
+void yyerror(const char *s);
int yyparse();
int yywrap();
@@ -256,7 +256,7 @@ int my_yyinput(char *buf, int max_size)
* message and deposits it in a usefull place.
*
**********************************************************************/
-void yyerror( char *s )
+void yyerror( const char *s )
{
snprintf( sqlpStmt->errmsg, 500, "%s processing '%s'", s, yytext );
@@ -215,7 +215,7 @@ F [fF]
. {
- fprintf(stderr, "syntax error: '%*s'\n", yyleng, yytext);
+ fprintf(stderr, "syntax error: '%*s'\n", (int) yyleng, yytext);
yyterminate();
}
%%
@@ -75,7 +75,7 @@ static expr_list *result;
extern int yylex(void);
int yyparse(void);
%}
@@ -237,7 +237,7 @@ void syntax_error(const char *fmt, ...)
syntax_error_occurred = 1;
-void yyerror(char *s)
+void yyerror(const char *s)
fprintf(stderr, "%s\n", s);
syntax_error_occurred = 0;