[Opensrf-commits] r1188 - in trunk: include/opensrf src/libopensrf

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Dec 31 20:58:16 EST 2007


Author: miker
Date: 2007-12-31 20:34:54 -0500 (Mon, 31 Dec 2007)
New Revision: 1188

Modified:
   trunk/include/opensrf/osrf_json.h
   trunk/src/libopensrf/osrf_json_tools.c
Log:
Patch from Scott McKellar which adds some const-correctness.



Modified: trunk/include/opensrf/osrf_json.h
===================================================================
--- trunk/include/opensrf/osrf_json.h	2007-12-27 21:40:04 UTC (rev 1187)
+++ trunk/include/opensrf/osrf_json.h	2008-01-01 01:34:54 UTC (rev 1188)
@@ -337,7 +337,7 @@
 /* sets the error handler for all parsers */
 void jsonSetGlobalErrorHandler(void (*errorHandler) (const char*));
 
-jsonObject* jsonParseFile( char* filename );
+jsonObject* jsonParseFile( const char* filename );
 
 /* ------------------------------------------------------------------------- */
 /**

Modified: trunk/src/libopensrf/osrf_json_tools.c
===================================================================
--- trunk/src/libopensrf/osrf_json_tools.c	2007-12-27 21:40:04 UTC (rev 1187)
+++ trunk/src/libopensrf/osrf_json_tools.c	2008-01-01 01:34:54 UTC (rev 1188)
@@ -168,7 +168,7 @@
 	return newObj;
 }
 
-jsonObject* jsonParseFile( char* filename ) {
+jsonObject* jsonParseFile( const char* filename ) {
 	if(!filename) return NULL;
 	char* data = file_to_string(filename);
 	jsonObject* o = jsonParseString(data);



More information about the opensrf-commits mailing list