X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdisk.c;h=94257feff7d9cd7d6e65cbed1f173cb2e35f969a;hb=b324ebf63ff9117d5f8facb97342925606d373cc;hp=489770c7f9da86b9f8c0cb50d918871933c05603;hpb=56159e13f4b983a2e8c846b39ca96b2384ec746a;p=collectd.git diff --git a/src/disk.c b/src/disk.c index 489770c7..94257fef 100644 --- a/src/disk.c +++ b/src/disk.c @@ -132,9 +132,7 @@ static int disk_config (const char *key, const char *value) else if (strcasecmp ("IgnoreSelected", key) == 0) { int invert = 1; - if ((strcasecmp ("True", value) == 0) - || (strcasecmp ("Yes", value) == 0) - || (strcasecmp ("On", value) == 0)) + if (IS_TRUE (value)) invert = 0; ignorelist_set_invert (ignorelist, invert); } @@ -150,7 +148,7 @@ static int disk_init (void) { #if HAVE_IOKIT_IOKITLIB_H kern_return_t status; - + if (io_master_port != MACH_PORT_NULL) { mach_port_deallocate (mach_task_self (),