summaryrefslogtreecommitdiffstats
path: root/runtime/module-template.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-11-28 10:02:08 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2012-11-28 10:02:08 +0100
commitd9df6e977554f0bd1d42093ea62ca15dab223ff3 (patch)
tree136b7b693c963dbbdd16a0c82dcc9ec978e0e0b1 /runtime/module-template.h
parent7b05ede891c22aac9bc8a9692b4416e2c3c4d815 (diff)
downloadrsyslog-d9df6e977554f0bd1d42093ea62ca15dab223ff3.tar.gz
rsyslog-d9df6e977554f0bd1d42093ea62ca15dab223ff3.tar.bz2
rsyslog-d9df6e977554f0bd1d42093ea62ca15dab223ff3.zip
bugfix: modules not (yet) supporting new conf format were not properly registered
This lead to a "module not found" error message instead of the to-be-expected "module does not support new style" error message. That invalid error message could be quite misleading and actually stop people from addressing the real problem (aka "go nuts" ;))
Diffstat (limited to 'runtime/module-template.h')
-rw-r--r--runtime/module-template.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/module-template.h b/runtime/module-template.h
index 72a139c4..fe74bac9 100644
--- a/runtime/module-template.h
+++ b/runtime/module-template.h
@@ -113,7 +113,7 @@ static rsRetVal modGetID(void **pID) \
/* macro to provide the v6 config system module name
*/
#define MODULE_CNFNAME(name) \
-static __attribute__((unused)) rsRetVal modGetCnfName(uchar **cnfName) \
+static rsRetVal modGetCnfName(uchar **cnfName) \
{ \
*cnfName = (uchar*) name; \
return RS_RET_OK;\