From 30426c360cc5dc55732bdd7c21a07cd46176bac5 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 13 Jan 2021 21:10:04 -0800 Subject: [PATCH] spv-legacy-decoder: Make 'data' parameter to decode_spvdx_table() const. --- src/output/spv/spv-legacy-decoder.c | 4 ++-- src/output/spv/spv-legacy-decoder.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/output/spv/spv-legacy-decoder.c b/src/output/spv/spv-legacy-decoder.c index 099d96cbcc..7641d78ed0 100644 --- a/src/output/spv/spv-legacy-decoder.c +++ b/src/output/spv/spv-legacy-decoder.c @@ -761,7 +761,7 @@ static char BAD_REFERENCE; static char * WARN_UNUSED_RESULT decode_spvdx_source_variable (const struct spvxml_node *node, - struct spv_data *data, + const struct spv_data *data, struct hmap *series_map) { const struct spvdx_source_variable *sv = spvdx_cast_source_variable (node); @@ -1768,7 +1768,7 @@ format_map_destroy (struct hmap *format_map) char * WARN_UNUSED_RESULT decode_spvdx_table (const struct spvdx_visualization *v, const char *subtype, const struct pivot_table_look *look, - struct spv_data *data, struct pivot_table **outp) + const struct spv_data *data, struct pivot_table **outp) { struct pivot_table *table = pivot_table_create__ (NULL, subtype); diff --git a/src/output/spv/spv-legacy-decoder.h b/src/output/spv/spv-legacy-decoder.h index 0b88811a68..bc1ffe1807 100644 --- a/src/output/spv/spv-legacy-decoder.h +++ b/src/output/spv/spv-legacy-decoder.h @@ -31,7 +31,7 @@ struct pivot_table_look; char *decode_spvdx_table (const struct spvdx_visualization *, const char *subtype, const struct pivot_table_look *, - struct spv_data *, + const struct spv_data *, struct pivot_table **outp) WARN_UNUSED_RESULT; -- 2.30.2