[Opensrf-commits] r1649 - trunk/src/c-apps
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Feb 2 08:32:58 EST 2009
Author: scottmk
Date: 2009-02-02 08:32:57 -0500 (Mon, 02 Feb 2009)
New Revision: 1649
Modified:
trunk/src/c-apps/osrf_math.c
Log:
Replace the OSRF_METHOD_VERIFY_CONTEXT macro with an
2 equivalent call to the osrfMethodVerifyContext function.
Modified: trunk/src/c-apps/osrf_math.c
===================================================================
--- trunk/src/c-apps/osrf_math.c 2009-02-02 13:29:22 UTC (rev 1648)
+++ trunk/src/c-apps/osrf_math.c 2009-02-02 13:32:57 UTC (rev 1649)
@@ -54,9 +54,11 @@
int osrfMathRun( osrfMethodContext* ctx ) {
+ if( osrfMethodVerifyContext( ctx ) ) {
+ osrfLogError( OSRF_LOG_MARK, "Invalid method context" );
+ return -1;
+ }
- OSRF_METHOD_VERIFY_CONTEXT(ctx); /* see osrf_application.h */
-
/* collect the request params */
const jsonObject* x = jsonObjectGetIndex(ctx->params, 0);
const jsonObject* y = jsonObjectGetIndex(ctx->params, 1);
More information about the opensrf-commits
mailing list