From: Marco van Tol Date: Tue, 23 Apr 2019 21:27:57 +0000 (+0200) Subject: Changes after applying contrib/format.sh X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d0432527fb995301f1a19b1b912f5c4e8da1a686;p=collectd.git Changes after applying contrib/format.sh --- diff --git a/src/cpufreq.c b/src/cpufreq.c index ee5492c5..f95b2828 100644 --- a/src/cpufreq.c +++ b/src/cpufreq.c @@ -26,8 +26,8 @@ #include "utils/common/common.h" #if KERNEL_FREEBSD -#include #include +#include #endif #if KERNEL_LINUX @@ -109,7 +109,7 @@ static int cpufreq_init(void) { int cpufreq; size_t cf_len = sizeof(cpufreq); - if(sysctlbyname(mib, &cpufreq, &cf_len, NULL, 0) != 0) { + if (sysctlbyname(mib, &cpufreq, &cf_len, NULL, 0) != 0) { WARNING("cpufreq plugin: sysctl \"%s\" failed.", mib); plugin_unregister_read("cpufreq"); } @@ -233,7 +233,7 @@ static int cpufreq_read(void) { int cpufreq; size_t cf_len = sizeof(cpufreq); - if(sysctlbyname(mib, &cpufreq, &cf_len, NULL, 0) != 0) { + if (sysctlbyname(mib, &cpufreq, &cf_len, NULL, 0) != 0) { WARNING("cpufreq plugin: sysctl \"%s\" failed.", mib); return 0; }