Patch from Scott McKellar:
authormiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 11 Apr 2008 15:45:10 +0000 (15:45 +0000)
committermiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 11 Apr 2008 15:45:10 +0000 (15:45 +0000)
These patches use the new function osrfHashIteratorKey() to fetch
the current key from an osrfHashIterator, instead of accessing it
directly.

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1308 9efc2488-bf62-4759-914b-345cdb29e865

src/libopensrf/osrf_application.c

index ece61a2..5737787 100644 (file)
@@ -118,7 +118,8 @@ void osrfAppRunExitCode() {
        osrfApplication* app;
        while( (app = osrfHashIteratorNext(itr)) ) {
                if( app->onExit ) {
-                       osrfLogInfo(OSRF_LOG_MARK, "Running onExit handler for app %s", itr->current);
+                       osrfLogInfo(OSRF_LOG_MARK, "Running onExit handler for app %s",
+                               osrfHashIteratorKey(itr) );
                        app->onExit();
                }
        }