diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-06-20 09:34:31 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-06-20 09:34:31 +0200 |
commit | 46ccc9e77f5e2ee3ded1ca79e973fafdc37e4c0f (patch) | |
tree | 8740339bdd1b50fea742814db1248a7fbf8ebd0d /runtime/conf.c | |
parent | 2cccec9a9ff5a5d1b0db6f869a525c4b3c601c33 (diff) | |
download | rsyslog-46ccc9e77f5e2ee3ded1ca79e973fafdc37e4c0f.tar.gz rsyslog-46ccc9e77f5e2ee3ded1ca79e973fafdc37e4c0f.tar.bz2 rsyslog-46ccc9e77f5e2ee3ded1ca79e973fafdc37e4c0f.zip |
milestone: module() can load module in legacy mode
Diffstat (limited to 'runtime/conf.c')
-rw-r--r-- | runtime/conf.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/runtime/conf.c b/runtime/conf.c index eec04df8..488d1b86 100644 --- a/runtime/conf.c +++ b/runtime/conf.c @@ -116,18 +116,15 @@ doModLoad(uchar **pp, __attribute__((unused)) void* pVal) skipWhiteSpace(pp); /* skip over any whitespace */ /* this below is a quick and dirty hack to provide compatibility with the - * $ModLoad MySQL forward compatibility statement. TODO: clean this up - * For the time being, it is clean enough, it just needs to be done - * differently when we have a full design for loadable plug-ins. For the - * time being, we just mangle the names a bit. - * rgerhards, 2007-08-14 + * $ModLoad MySQL forward compatibility statement. This needs to be supported + * for legacy format. */ if(!strcmp((char*) szName, "MySQL")) pModName = (uchar*) "ommysql.so"; else pModName = szName; - CHKiRet(module.Load(pModName, 1)); + CHKiRet(module.Load(pModName, 1, NULL)); finalize_it: RETiRet; |