author | Bruno Prémont <bonbons@linux-vserver.org> | |
Fri, 18 Mar 2011 07:24:40 +0000 (08:24 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Fri, 18 Mar 2011 08:23:02 +0000 (09:23 +0100) | ||
commit | f9451f7f6e794e7f42ef8f4b1c5551537b848272 | |
tree | b5ab791694ba1ccdbd81235ad1642208142f6182 | tree | snapshot |
parent | 27cd1bfc12b4c3c81ccd2d3f2cc1f6ef5028a94f | commit | diff |
Fix compilation error with plugin_register_shutdown
Compiling collectd-4.10.2 on an OpenSuSE 11.3 system causes the
following error:
snmp.c: In function ‘module_register’:
snmp.c:1620:3: error: passing argument 1 of ‘plugin_register_shutdown’ discards qualifiers from pointer target type
plugin.h:275:5: note: expected ‘char *’ but argument is of type ‘const char *’
Convert plugin_register_shutdown's name argument from 'char *' to
'const char *' in order to match the other plugin_register_*
functions.
Signed-off-by: Bruno Prémont <bonbons@linux-vserver.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Compiling collectd-4.10.2 on an OpenSuSE 11.3 system causes the
following error:
snmp.c: In function ‘module_register’:
snmp.c:1620:3: error: passing argument 1 of ‘plugin_register_shutdown’ discards qualifiers from pointer target type
plugin.h:275:5: note: expected ‘char *’ but argument is of type ‘const char *’
Convert plugin_register_shutdown's name argument from 'char *' to
'const char *' in order to match the other plugin_register_*
functions.
Signed-off-by: Bruno Prémont <bonbons@linux-vserver.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/plugin.c | diff | blob | history | |
src/plugin.h | diff | blob | history |