Ver código fonte

Fix warnings (see also https://trac.osgeo.org/grass/changeset/67518)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@67559 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 9 anos atrás
pai
commit
2ef69c575c
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1 1
      include/defs/sqlp.h
  2. 1 1
      lib/db/sqlp/sqlp.l

+ 1 - 1
include/defs/sqlp.h

@@ -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();
 

+ 1 - 1
lib/db/sqlp/sqlp.l

@@ -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 );