Replace the OSRF_METHOD_VERIFY_CONTEXT macro with an
authorscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 2 Feb 2009 13:32:57 +0000 (13:32 +0000)
committerscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 2 Feb 2009 13:32:57 +0000 (13:32 +0000)
2 equivalent call to the osrfMethodVerifyContext function.

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1649 9efc2488-bf62-4759-914b-345cdb29e865

src/c-apps/osrf_math.c

index df44afb..ea90947 100644 (file)
@@ -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);