From: Sebastian Harl Date: Sun, 20 May 2007 14:24:22 +0000 (+0200) Subject: myplugin.c: Do not pass a modreg_e to plugin_register. X-Git-Tag: collectd-4.0.2-1~28 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ec42d24eb69e929af1ef961f101b0fe4712fc649;p=pkg-collectd.git myplugin.c: Do not pass a modreg_e to plugin_register. This has been removed in rc7. --- diff --git a/debian/examples/myplugin.c b/debian/examples/myplugin.c index 2b3212a..ab7417b 100644 --- a/debian/examples/myplugin.c +++ b/debian/examples/myplugin.c @@ -158,16 +158,11 @@ static int my_shutdown (void) * This function is called after loading the plugin to register it with * collectd. */ -void module_register (modreg_e load) +void module_register (void) { plugin_register_log ("myplugin", my_log); - - if (load & MR_DATASETS) - plugin_register_data_set (&ds); - - if (load & MR_READ) - plugin_register_read ("myplugin", my_read); - + plugin_register_data_set (&ds); + plugin_register_read ("myplugin", my_read); plugin_register_init ("myplugin", my_init); plugin_register_write ("myplugin", my_write); plugin_register_shutdown ("myplugin", my_shutdown);