[Opensrf-commits] r1308 - trunk/src/libopensrf

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Apr 11 12:22:44 EDT 2008


Author: miker
Date: 2008-04-11 11:45:10 -0400 (Fri, 11 Apr 2008)
New Revision: 1308

Modified:
   trunk/src/libopensrf/osrf_application.c
Log:
Patch from Scott McKellar:

These patches use the new function osrfHashIteratorKey() to fetch
the current key from an osrfHashIterator, instead of accessing it
directly.



Modified: trunk/src/libopensrf/osrf_application.c
===================================================================
--- trunk/src/libopensrf/osrf_application.c	2008-04-11 15:13:57 UTC (rev 1307)
+++ trunk/src/libopensrf/osrf_application.c	2008-04-11 15:45:10 UTC (rev 1308)
@@ -118,7 +118,8 @@
 	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();
 		}
 	}



More information about the opensrf-commits mailing list