From ec42d24eb69e929af1ef961f101b0fe4712fc649 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sun, 20 May 2007 16:24:22 +0200 Subject: [PATCH] myplugin.c: Do not pass a modreg_e to plugin_register. This has been removed in rc7. --- debian/examples/myplugin.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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); -- 2.30.2