[Opensrf-commits] r1648 - trunk/src/c-apps

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Feb 2 08:29:23 EST 2009


Author: scottmk
Date: 2009-02-02 08:29:22 -0500 (Mon, 02 Feb 2009)
New Revision: 1648

Modified:
   trunk/src/c-apps/osrf_dbmath.c
Log:
Replace the OSRF_METHOD_VERIFY_CONTEXT macro with an 
equivalent call to the osrfMethodVerifyContext function.


Modified: trunk/src/c-apps/osrf_dbmath.c
===================================================================
--- trunk/src/c-apps/osrf_dbmath.c	2009-01-29 03:58:26 UTC (rev 1647)
+++ trunk/src/c-apps/osrf_dbmath.c	2009-02-02 13:29:22 UTC (rev 1648)
@@ -44,9 +44,11 @@
 }
 
 int osrfMathRun( osrfMethodContext* ctx ) {
+	if( osrfMethodVerifyContext( ctx ) ) {
+		osrfLogError( OSRF_LOG_MARK,  "Invalid method context" );
+		return -1;
+	}
 
-	OSRF_METHOD_VERIFY_CONTEXT(ctx);	
-
 	const jsonObject* x = jsonObjectGetIndex(ctx->params, 0);
 	const jsonObject* y = jsonObjectGetIndex(ctx->params, 1);
 



More information about the opensrf-commits mailing list