[Opensrf-commits] r1688 - trunk/src/libopensrf (scottmk)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Mar 31 08:45:54 EDT 2009


Author: scottmk
Date: 2009-03-31 08:45:53 -0400 (Tue, 31 Mar 2009)
New Revision: 1688

Modified:
   trunk/src/libopensrf/osrf_system.c
Log:
In osrf_system_shutdown(): provide a return value for an early
return (since the function is of type int).

It's not clear whether these are the right semantics, since we
never capture the return value anyway.  But if we're going
to return anything at all, it makes sense to return something
different in the case of an early return.


Modified: trunk/src/libopensrf/osrf_system.c
===================================================================
--- trunk/src/libopensrf/osrf_system.c	2009-03-31 02:08:48 UTC (rev 1687)
+++ trunk/src/libopensrf/osrf_system.c	2009-03-31 12:45:53 UTC (rev 1688)
@@ -462,7 +462,7 @@
 
 static int shutdownComplete = 0;
 int osrf_system_shutdown( void ) {
-    if(shutdownComplete) return;
+    if(shutdownComplete) return 0;
 	osrfConfigCleanup();
     osrfCacheCleanup();
 	osrf_system_disconnect_client();



More information about the opensrf-commits mailing list