summaryrefslogtreecommitdiffstats
path: root/runtime/rsconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/rsconf.c')
-rw-r--r--runtime/rsconf.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/runtime/rsconf.c b/runtime/rsconf.c
index cb8eac50..459c9a17 100644
--- a/runtime/rsconf.c
+++ b/runtime/rsconf.c
@@ -222,7 +222,6 @@ cnfDoActlst(struct cnfactlst *actlst, rule_t *pRule)
{
struct cnfcfsyslinelst *cflst;
action_t *pAction;
- rsRetVal localRet;
uchar *str;
DEFiRet;
@@ -280,7 +279,7 @@ void cnfDoRule(struct cnfrule *cnfrule)
{
rule_t *pRule;
uchar *str;
- DEFiRet;
+ rsRetVal iRet = RS_RET_OK; //DEFiRet;
dbgprintf("cnf:global:rule\n");
cnfrulePrint(cnfrule);
@@ -346,6 +345,17 @@ void cnfDoBSDHost(char *ln)
dbgprintf("cnf:global:BSD host: %s\n", ln);
cflineProcessHostSelector((uchar**)&ln);
}
+
+es_str_t*
+cnfGetVar(char *name, void *usrptr)
+{
+ es_str_t *estr;
+ dbgprintf("ZZZZ: var '%s' requested", name);
+ if(name[0] == '$') {
+ estr = msgGetMsgVarNew((msg_t*) usrptr, (uchar*)name+1);
+ }
+ return estr;
+}
/*------------------------------ end interface to flex/bison parser ------------------------------*/