X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fthermal.c;h=48157552eed1dff67d7b9a8c9d0388b7f0b05126;hb=307c875e5a78a2729fbbe1a588d232e9a129d75a;hp=fbae6cc1e686ec177e9dbceaa71f9f99754c5ea9;hpb=facbb03bdd0c591344b1a81dd0437064cfcc24e5;p=collectd.git diff --git a/src/thermal.c b/src/thermal.c index fbae6cc1..48157552 100644 --- a/src/thermal.c +++ b/src/thermal.c @@ -78,7 +78,7 @@ static int thermal_sysfs_device_read(const char __attribute__((unused)) * dir, success = 1; } - return (success ? 0 : -1); + return success ? 0 : -1; } static int thermal_procfs_device_read(const char __attribute__((unused)) * dir, @@ -168,13 +168,11 @@ static int thermal_config(const char *key, const char *value) { } static int thermal_sysfs_read(void) { - return walk_directory(dirname_sysfs, thermal_sysfs_device_read, - /* user_data = */ NULL, /* include hidden */ 0); + return walk_directory(dirname_sysfs, thermal_sysfs_device_read, NULL, 0); } static int thermal_procfs_read(void) { - return walk_directory(dirname_procfs, thermal_procfs_device_read, - /* user_data = */ NULL, /* include hidden */ 0); + return walk_directory(dirname_procfs, thermal_procfs_device_read, NULL, 0); } static int thermal_init(void) {