From: Florian Forster Date: Wed, 9 May 2007 06:45:33 +0000 (+0200) Subject: apple_sensors plugin: Fix the `module_register' function. X-Git-Tag: collectd-4.0.0~46^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d4a0ba8ef40bbdd52be4ad73d7064171aeed155e;p=collectd.git apple_sensors plugin: Fix the `module_register' function. --- diff --git a/src/apple_sensors.c b/src/apple_sensors.c index 848c212a..e13bdc8a 100644 --- a/src/apple_sensors.c +++ b/src/apple_sensors.c @@ -245,10 +245,7 @@ static int as_read (void) void module_register (void) { #if IOKIT_HAVE_READ - if (load & MR_READ) - { - plugin_register_init ("apple_sensors", as_init); - plugin_register_read ("apple_sensors", as_read); - } + plugin_register_init ("apple_sensors", as_init); + plugin_register_read ("apple_sensors", as_read); #endif /* IOKIT_HAVE_READ */ } /* void module_register */