Sometimes we will receive some data which has been constified and in
order to pass it on straight away, we will constify the value pointer,
too.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
}
static int td_metrics_push_value(td_metrics* self,
- const char* field, td_metric_type type, void* value) {
+ const char* field, td_metric_type type, const void* value) {
td_metric* metric = NULL;
int index;
td_metric_type type;
// Value
- void* value;
+ const void* value;
} td_metric_value;
#define VALUES(...) ((const td_metric_value[]) { __VA_ARGS__, { NULL } })