diff options
| author | chenzizhan <[email protected]> | 2023-06-09 17:47:03 +0800 |
|---|---|---|
| committer | chenzizhan <[email protected]> | 2023-06-09 17:47:03 +0800 |
| commit | db2f18ae11b1aa2cde9b03619f1efcfb8dc58496 (patch) | |
| tree | d08e7a2f8eca649f02c46c5ba7cc380cf5b7dca6 /src/utils | |
| parent | 987285d3a900d36834e87401216801d3ac5cc316 (diff) | |
fix warnings. add const and static key words. metric->serializer to serializer->metric_info->metric
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/fieldstat_tag.c | 2 | ||||
| -rw-r--r-- | src/utils/fieldstat_tag.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/fieldstat_tag.c b/src/utils/fieldstat_tag.c index 04400bf..8f4d9eb 100644 --- a/src/utils/fieldstat_tag.c +++ b/src/utils/fieldstat_tag.c @@ -60,7 +60,7 @@ int build_dynamic_metric_key(const struct fieldstat_tag tags[], size_t n_tags, s return used_len; } -int build_dynamic_metric_key_with_unzipped_tag(const char *tag_key[], const char *tag_value[], size_t n_tags, char *out_key, size_t out_key_size) +int build_dynamic_metric_key_with_unzipped_tag(const char * const tag_key[], const char * const tag_value[], size_t n_tags, char *out_key, size_t out_key_size) { int used_len = 0; diff --git a/src/utils/fieldstat_tag.h b/src/utils/fieldstat_tag.h index 6ae505a..41636d0 100644 --- a/src/utils/fieldstat_tag.h +++ b/src/utils/fieldstat_tag.h @@ -10,7 +10,7 @@ extern "C" { void tag_pair_unzip(const struct fieldstat_tag *tag, char **tag_key_out, char **tag_value_out); int build_dynamic_metric_key(const struct fieldstat_tag tags[], size_t n_tags, size_t out_key_size, char *out_key); -int build_dynamic_metric_key_with_unzipped_tag(const char *tag_key[], const char *tag_value[], size_t n_tags, char *out_key, size_t out_key_size); +int build_dynamic_metric_key_with_unzipped_tag(const char * const tag_key[], const char * const tag_value[], size_t n_tags, char *out_key, size_t out_key_size); #ifdef __cplusplus } |
