From 5a4bb22cda5a75b0fcbfbaaa847a8d1ea5091251 Mon Sep 17 00:00:00 2001 From: scottmk Date: Mon, 2 Feb 2009 13:29:22 +0000 Subject: [PATCH] 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 --- src/c-apps/osrf_dbmath.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); -- 2.43.2