From 649482c9894b89022df2e14faa84ebabf30fa86c Mon Sep 17 00:00:00 2001 From: scottmk Date: Tue, 31 Mar 2009 12:45:53 +0000 Subject: [PATCH] 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 --- src/libopensrf/osrf_system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.11.0