summaryrefslogtreecommitdiffstats
path: root/runtime/conf.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-04-27 17:11:41 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-04-27 17:11:41 +0200
commit5cd3cdf3c82ef49506124ace13d20c52afd5d44a (patch)
tree5d510436b780c30757378bbc70b8f8024db38f4b /runtime/conf.c
parent4f8457ffe3bc0a104a86ac79622844c4206adbbb (diff)
downloadrsyslog-5cd3cdf3c82ef49506124ace13d20c52afd5d44a.tar.gz
rsyslog-5cd3cdf3c82ef49506124ace13d20c52afd5d44a.tar.xz
rsyslog-5cd3cdf3c82ef49506124ace13d20c52afd5d44a.zip
step: config-specific module list used during config processing
Diffstat (limited to 'runtime/conf.c')
-rw-r--r--runtime/conf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/conf.c b/runtime/conf.c
index 67c1ed81..ea7102a6 100644
--- a/runtime/conf.c
+++ b/runtime/conf.c
@@ -1105,7 +1105,7 @@ static rsRetVal cflineDoAction(rsconf_t *conf, uchar **p, action_t **ppAction)
ASSERT(ppAction != NULL);
/* loop through all modules and see if one picks up the line */
- pMod = module.GetNxtType(NULL, eMOD_OUT);
+ pMod = module.GetNxtCnfType(conf, NULL, eMOD_OUT);
/* Note: clang static analyzer reports that pMod mybe == NULL. However, this is
* not possible, because we have the built-in output modules which are always
* present. Anyhow, we guard this by an assert. -- rgerhards, 2010-12-16
@@ -1144,7 +1144,7 @@ static rsRetVal cflineDoAction(rsconf_t *conf, uchar **p, action_t **ppAction)
dbgprintf("error %d parsing config line\n", (int) iRet);
break;
}
- pMod = module.GetNxtType(pMod, eMOD_OUT);
+ pMod = module.GetNxtCnfType(conf, pMod, eMOD_OUT);
}
*ppAction = pAction;
@@ -1287,7 +1287,7 @@ setActionScope(void)
/* now tell each action to start the scope */
pMod = NULL;
- while((pMod = module.GetNxtType(pMod, eMOD_OUT)) != NULL) {
+ while((pMod = module.GetNxtCnfType(loadConf, pMod, eMOD_OUT)) != NULL) {
DBGPRINTF("beginning scope on module %s\n", pMod->pszName);
pMod->mod.om.newScope();
}
@@ -1312,7 +1312,7 @@ unsetActionScope(void)
/* now tell each action to restore the scope */
pMod = NULL;
- while((pMod = module.GetNxtType(pMod, eMOD_OUT)) != NULL) {
+ while((pMod = module.GetNxtCnfType(loadConf, pMod, eMOD_OUT)) != NULL) {
DBGPRINTF("exiting scope on module %s\n", pMod->pszName);
pMod->mod.om.restoreScope();
}