[Opensrf-commits] r2003 - trunk/src/libopensrf (scottmk)
svn at svn.open-ils.org
svn at svn.open-ils.org
Sat Aug 14 17:15:01 EDT 2010
Author: scottmk
Date: 2010-08-14 17:14:55 -0400 (Sat, 14 Aug 2010)
New Revision: 2003
Modified:
trunk/src/libopensrf/osrf_parse_json.c
Log:
Pedantic change for const-correctness: replace two calls to
jsonObjectGetKey() with calls to jsonObjectGetKeyConst().
M src/libopensrf/osrf_parse_json.c
Modified: trunk/src/libopensrf/osrf_parse_json.c
===================================================================
--- trunk/src/libopensrf/osrf_parse_json.c 2010-08-14 20:48:08 UTC (rev 2002)
+++ trunk/src/libopensrf/osrf_parse_json.c 2010-08-14 21:14:55 UTC (rev 2003)
@@ -410,7 +410,7 @@
}
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 @@
}
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;
More information about the opensrf-commits
mailing list