mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-19 19:40:41 +01:00
omshell: use new errmsg interface
see also https://github.com/rsyslog/rsyslog/issues/1684
This commit is contained in:
parent
c3fb6e07e2
commit
2100326e43
@ -57,7 +57,6 @@ MODULE_TYPE_NOKEEP
|
||||
/* internal structures
|
||||
*/
|
||||
DEF_OMOD_STATIC_DATA
|
||||
DEFobjCurrIf(errmsg)
|
||||
|
||||
typedef struct _instanceData {
|
||||
uchar progName[MAXFNAME]; /* program to execute */
|
||||
@ -108,7 +107,7 @@ BEGINdoAction
|
||||
CODESTARTdoAction
|
||||
dbgprintf("\n");
|
||||
if(execProg((uchar*) pWrkrData->pData->progName, 1, ppString[0]) == 0)
|
||||
errmsg.LogError(0, NO_ERRCODE, "Executing program '%s' failed", (char*)pWrkrData->pData->progName);
|
||||
LogError(0, NO_ERRCODE, "Executing program '%s' failed", (char*)pWrkrData->pData->progName);
|
||||
ENDdoAction
|
||||
|
||||
|
||||
@ -157,7 +156,6 @@ BEGINmodInit(Shell)
|
||||
CODESTARTmodInit
|
||||
*ipIFVersProvided = CURR_MOD_IF_VERSION; /* we only support the current interface specification */
|
||||
CODEmodInit_QueryRegCFSLineHdlr
|
||||
CHKiRet(objUse(errmsg, CORE_COMPONENT));
|
||||
ENDmodInit
|
||||
|
||||
/*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user