From: scottmk Date: Tue, 31 Mar 2009 12:45:53 +0000 (+0000) Subject: In osrf_system_shutdown(): provide a return value for an early X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=649482c9894b89022df2e14faa84ebabf30fa86c;p=opensrf%2Fbjwebb.git 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. git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1688 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/libopensrf/osrf_system.c b/src/libopensrf/osrf_system.c index 96f8c82..6814ea3 100644 --- a/src/libopensrf/osrf_system.c +++ b/src/libopensrf/osrf_system.c @@ -462,7 +462,7 @@ int osrf_system_disconnect_client( void ) { static int shutdownComplete = 0; int osrf_system_shutdown( void ) { - if(shutdownComplete) return; + if(shutdownComplete) return 0; osrfConfigCleanup(); osrfCacheCleanup(); osrf_system_disconnect_client();