From: Ben Pfaff Date: Thu, 14 Jan 2021 05:10:04 +0000 (-0800) Subject: spv-legacy-decoder: Make 'data' parameter to decode_spvdx_table() const. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30426c360cc5dc55732bdd7c21a07cd46176bac5;p=pspp spv-legacy-decoder: Make 'data' parameter to decode_spvdx_table() const. --- 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;