From 3548bea8b944215e162132c8ba6f1fa557941736 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 15 Dec 2018 18:13:42 +0100 Subject: [PATCH] cpufreq plugin: fix minor style issue --- src/cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpufreq.c b/src/cpufreq.c index a81cf462..21b6429a 100644 --- a/src/cpufreq.c +++ b/src/cpufreq.c @@ -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; -- 2.11.0