]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
cpufreq plugin: fix minor style issue
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 15 Dec 2018 17:13:42 +0000 (18:13 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 15 Dec 2018 18:40:07 +0000 (19:40 +0100)
src/cpufreq.c

index a81cf46239ef41f7811204e11fd653dcb97fb400..21b6429a18d7b9eb4e47de0ee4c5a4e41b94ffea 100644 (file)
@@ -37,7 +37,7 @@ struct cpu_data_t {
 static bool report_p_stats = false;
 
 static void cpufreq_stats_init(void) {
-  cpu_data = calloc(num_cpu, sizeof(struct cpu_data_t));
+  cpu_data = calloc(num_cpu, sizeof(*cpu_data));
   if (cpu_data == NULL)
     return;