[open-ils-commits] r17221 - trunk/Open-ILS/src/c-apps (scottmk)
svn at svn.open-ils.org
svn at svn.open-ils.org
Sat Aug 14 20:27:09 EDT 2010
Author: scottmk
Date: 2010-08-14 20:27:08 -0400 (Sat, 14 Aug 2010)
New Revision: 17221
Modified:
trunk/Open-ILS/src/c-apps/oils_auth.c
Log:
Pedantic change for const-correctness: replaced a call to
jsonObjectGetKey() with a call to jsonObjectGetKeyConst().
M Open-ILS/src/c-apps/oils_auth.c
Modified: trunk/Open-ILS/src/c-apps/oils_auth.c
===================================================================
--- trunk/Open-ILS/src/c-apps/oils_auth.c 2010-08-14 21:55:50 UTC (rev 17220)
+++ trunk/Open-ILS/src/c-apps/oils_auth.c 2010-08-15 00:27:08 UTC (rev 17221)
@@ -704,7 +704,8 @@
// Extend the current endtime by a fixed amount
time_t endtime = (time_t) jsonObjectGetNumber( endtime_obj );
int reset_interval = DEFAULT_RESET_INTERVAL;
- jsonObject* reset_interval_obj = jsonObjectGetKey( cacheObj, "reset_interval" );
+ const jsonObject* reset_interval_obj = jsonObjectGetKeyConst(
+ cacheObj, "reset_interval" );
if( reset_interval_obj ) {
reset_interval = (int) jsonObjectGetNumber( reset_interval_obj );
if( reset_interval <= 0 )
More information about the open-ils-commits
mailing list