From: scottmk Date: Mon, 2 Feb 2009 13:32:57 +0000 (+0000) Subject: Replace the OSRF_METHOD_VERIFY_CONTEXT macro with an X-Git-Tag: osrf_rel_2_0_1~407 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3a16847705f5648372d547b546d68e4a64aaccb8;p=OpenSRF.git Replace the OSRF_METHOD_VERIFY_CONTEXT macro with an 2 equivalent call to the osrfMethodVerifyContext function. git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1649 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/c-apps/osrf_math.c b/src/c-apps/osrf_math.c index df44afb..ea90947 100644 --- a/src/c-apps/osrf_math.c +++ b/src/c-apps/osrf_math.c @@ -54,8 +54,10 @@ void osrfAppChildExit() { int osrfMathRun( osrfMethodContext* ctx ) { - - OSRF_METHOD_VERIFY_CONTEXT(ctx); /* see osrf_application.h */ + if( osrfMethodVerifyContext( ctx ) ) { + osrfLogError( OSRF_LOG_MARK, "Invalid method context" ); + return -1; + } /* collect the request params */ const jsonObject* x = jsonObjectGetIndex(ctx->params, 0);