projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #3103 from rubenk/write_prometheus-fix-compiler-warning
[collectd.git]
/
src
/
cpufreq.c
diff --git
a/src/cpufreq.c
b/src/cpufreq.c
index
a81cf46
..
35ec07f
100644
(file)
--- a/
src/cpufreq.c
+++ b/
src/cpufreq.c
@@
-22,8
+22,8
@@
#include "collectd.h"
#include "collectd.h"
-#include "common.h"
#include "plugin.h"
#include "plugin.h"
+#include "utils/common/common.h"
#define MAX_AVAIL_FREQS 20
#define MAX_AVAIL_FREQS 20
@@
-37,7
+37,7
@@
struct cpu_data_t {
static bool report_p_stats = false;
static void cpufreq_stats_init(void) {
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;
if (cpu_data == NULL)
return;