diff options
-rw-r--r-- | plugins/omtesting/omtesting.c | 4 | ||||
-rw-r--r-- | runtime/module-template.h | 3 | ||||
-rw-r--r-- | tools/omfwd.c | 2 |
3 files changed, 4 insertions, 5 deletions
diff --git a/plugins/omtesting/omtesting.c b/plugins/omtesting/omtesting.c index 7c793414..ffb1ff8b 100644 --- a/plugins/omtesting/omtesting.c +++ b/plugins/omtesting/omtesting.c @@ -173,11 +173,11 @@ static rsRetVal doRandFail(void) BEGINtryResume CODESTARTtryResume dbgprintf("omtesting tryResume() called\n"); - switch(pData->mode) { + switch(pWrkrData->pData->mode) { case MD_SLEEP: break; case MD_FAIL: - iRet = doFailOnResume(pData); + iRet = doFailOnResume(pWrkrData->pData); break; case MD_RANDFAIL: iRet = doRandFail(); diff --git a/runtime/module-template.h b/runtime/module-template.h index f23f4348..c3e79570 100644 --- a/runtime/module-template.h +++ b/runtime/module-template.h @@ -424,11 +424,10 @@ static rsRetVal newInpInst(struct nvlst *lst)\ #define BEGINtryResume \ static rsRetVal tryResume(wrkrInstanceData_t __attribute__((unused)) *pWrkrData)\ {\ - instanceData *pData = pWrkrData->pData; \ DEFiRet; #define CODESTARTtryResume \ - assert(pData != NULL); + assert(pWrkrData != NULL); #define ENDtryResume \ RETiRet;\ diff --git a/tools/omfwd.c b/tools/omfwd.c index ca33cac2..a7ba4d01 100644 --- a/tools/omfwd.c +++ b/tools/omfwd.c @@ -734,7 +734,7 @@ finalize_it: BEGINtryResume CODESTARTtryResume - iRet = doTryResume(pData); + iRet = doTryResume(pWrkrData->pData); ENDtryResume |