Pedantic change for const-correctness: replaced a call to
authorscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 15 Aug 2010 00:27:08 +0000 (00:27 +0000)
committerscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 15 Aug 2010 00:27:08 +0000 (00:27 +0000)
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

index 2f04ac2..e952d14 100644 (file)
@@ -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 )