From 31fb3b44c0f0a0df6554baab3456f6ba55651a1b Mon Sep 17 00:00:00 2001 From: miker Date: Tue, 1 Jan 2008 01:34:54 +0000 Subject: [PATCH] Patch from Scott McKellar which adds some const-correctness. git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1188 9efc2488-bf62-4759-914b-345cdb29e865 --- include/opensrf/osrf_json.h | 2 +- src/libopensrf/osrf_json_tools.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/opensrf/osrf_json.h b/include/opensrf/osrf_json.h index d13a54b..51e76cd 100644 --- a/include/opensrf/osrf_json.h +++ b/include/opensrf/osrf_json.h @@ -337,7 +337,7 @@ char* jsonFormatString( const char* jsonString ); /* sets the error handler for all parsers */ void jsonSetGlobalErrorHandler(void (*errorHandler) (const char*)); -jsonObject* jsonParseFile( char* filename ); +jsonObject* jsonParseFile( const char* filename ); /* ------------------------------------------------------------------------- */ /** diff --git a/src/libopensrf/osrf_json_tools.c b/src/libopensrf/osrf_json_tools.c index 35ce3c9..76b5c41 100644 --- a/src/libopensrf/osrf_json_tools.c +++ b/src/libopensrf/osrf_json_tools.c @@ -168,7 +168,7 @@ static jsonObject* _jsonObjectEncodeClass( const jsonObject* obj, int ignoreClas 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); -- 2.11.0