From 0ac31487e1dd56149c93a2e7dbf6f8b12aa55240 Mon Sep 17 00:00:00 2001 From: scottmk Date: Sun, 15 Aug 2010 00:27:08 +0000 Subject: [PATCH] Pedantic change for const-correctness: replaced a call to jsonObjectGetKey() with a call to jsonObjectGetKeyConst(). M Open-ILS/src/c-apps/oils_auth.c git-svn-id: svn://svn.open-ils.org/ILS/trunk@17221 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/c-apps/oils_auth.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/c-apps/oils_auth.c b/Open-ILS/src/c-apps/oils_auth.c index 2f04ac2e4e..e952d144b0 100644 --- a/Open-ILS/src/c-apps/oils_auth.c +++ b/Open-ILS/src/c-apps/oils_auth.c @@ -704,7 +704,8 @@ static oilsEvent* _oilsAuthResetTimeout( const char* authToken ) { // 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 ) -- 2.11.0