[GRASS-SVN] r67559 - in grass/trunk: include/defs lib/db/sqlp

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jan 11 12:33:42 PST 2016


Author: glynn
Date: 2016-01-11 12:33:42 -0800 (Mon, 11 Jan 2016)
New Revision: 67559

Modified:
   grass/trunk/include/defs/sqlp.h
   grass/trunk/lib/db/sqlp/sqlp.l
Log:
Fix warnings (see also r67518)


Modified: grass/trunk/include/defs/sqlp.h
===================================================================
--- grass/trunk/include/defs/sqlp.h	2016-01-11 16:47:12 UTC (rev 67558)
+++ grass/trunk/include/defs/sqlp.h	2016-01-11 20:33:42 UTC (rev 67559)
@@ -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();
 

Modified: grass/trunk/lib/db/sqlp/sqlp.l
===================================================================
--- grass/trunk/lib/db/sqlp/sqlp.l	2016-01-11 16:47:12 UTC (rev 67558)
+++ grass/trunk/lib/db/sqlp/sqlp.l	2016-01-11 20:33:42 UTC (rev 67559)
@@ -256,7 +256,7 @@
  * 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 );
 



More information about the grass-commit mailing list