X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fintel_rdt.c;h=62ce9b806a0882f34848893ef71fc3efe64eaf31;hb=7f07c55bac640c7a50d516248a3152235a14af59;hp=667033c0cdf01131b9d8aaeec94dbfb0064a76c0;hpb=2a8f44ef75deb13f3152d1f2dd73253cb7aaf442;p=collectd.git diff --git a/src/intel_rdt.c b/src/intel_rdt.c index 667033c0..62ce9b80 100644 --- a/src/intel_rdt.c +++ b/src/intel_rdt.c @@ -25,9 +25,9 @@ * Serhiy Pshyk **/ +#include "collectd.h" #include "common.h" #include "utils_config_cores.h" -#include "collectd.h" #include @@ -336,8 +336,8 @@ static int rdt_config(oconfig_item_t *ci) { return 0; } -static void rdt_submit_derive(char *cgroup, char *type, char *type_instance, - derive_t value) { +static void rdt_submit_derive(const char *cgroup, const char *type, + const char *type_instance, derive_t value) { value_list_t vl = VALUE_LIST_INIT; vl.values = &(value_t){.derive = value}; @@ -352,8 +352,8 @@ static void rdt_submit_derive(char *cgroup, char *type, char *type_instance, plugin_dispatch_values(&vl); } -static void rdt_submit_gauge(char *cgroup, char *type, char *type_instance, - gauge_t value) { +static void rdt_submit_gauge(const char *cgroup, const char *type, + const char *type_instance, gauge_t value) { value_list_t vl = VALUE_LIST_INIT; vl.values = &(value_t){.gauge = value};