From: scottmk Date: Sat, 14 Aug 2010 21:14:55 +0000 (+0000) Subject: Pedantic change for const-correctness: replace two calls to X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fbcba773f8d5db9f8e5a08867232ac153ecabfce;p=opensrf%2Fbjwebb.git Pedantic change for const-correctness: replace two calls to jsonObjectGetKey() with calls to jsonObjectGetKeyConst(). M src/libopensrf/osrf_parse_json.c git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@2003 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/libopensrf/osrf_parse_json.c b/src/libopensrf/osrf_parse_json.c index aef8a88..2ea7f52 100644 --- a/src/libopensrf/osrf_parse_json.c +++ b/src/libopensrf/osrf_parse_json.c @@ -410,7 +410,7 @@ static jsonObject* get_hash( Parser* parser ) { } char* key_copy = strdup( key ); - if( jsonObjectGetKey( hash, key_copy ) ) { + if( jsonObjectGetKeyConst( hash, key_copy ) ) { report_error( parser, '"', "Duplicate key in JSON object" ); jsonObjectFree( hash ); return NULL; @@ -495,7 +495,7 @@ static jsonObject* get_decoded_hash( Parser* parser ) { } char* key_copy = strdup( key ); - if( jsonObjectGetKey( hash, key_copy ) ) { + if( jsonObjectGetKeyConst( hash, key_copy ) ) { report_error( parser, '"', "Duplicate key in JSON object" ); jsonObjectFree( hash ); return NULL;