From: scottmk Date: Mon, 2 Feb 2009 13:29:22 +0000 (+0000) Subject: Replace the OSRF_METHOD_VERIFY_CONTEXT macro with an X-Git-Tag: osrf_rel_2_0_1~408 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5a4bb22cda5a75b0fcbfbaaa847a8d1ea5091251;p=OpenSRF.git Replace the OSRF_METHOD_VERIFY_CONTEXT macro with an equivalent call to the osrfMethodVerifyContext function. git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1648 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/c-apps/osrf_dbmath.c b/src/c-apps/osrf_dbmath.c index bb0c093..e97ab9b 100644 --- a/src/c-apps/osrf_dbmath.c +++ b/src/c-apps/osrf_dbmath.c @@ -44,8 +44,10 @@ int osrfAppChildInit() { } int osrfMathRun( osrfMethodContext* ctx ) { - - OSRF_METHOD_VERIFY_CONTEXT(ctx); + if( osrfMethodVerifyContext( ctx ) ) { + osrfLogError( OSRF_LOG_MARK, "Invalid method context" ); + return -1; + } const jsonObject* x = jsonObjectGetIndex(ctx->params, 0); const jsonObject* y = jsonObjectGetIndex(ctx->params, 1);