From bea66873fce4f2e00912bdaec77c9bcf52acc113 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 14 Aug 2021 14:28:15 -0700 Subject: [PATCH] plot_dot_map: take a const pointer for a string that is not modified --- cmd/gvmap/make_map.c | 2 +- cmd/gvmap/make_map.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/gvmap/make_map.c b/cmd/gvmap/make_map.c index edf885d0b..d72bcb2fe 100644 --- a/cmd/gvmap/make_map.c +++ b/cmd/gvmap/make_map.c @@ -318,7 +318,7 @@ void plot_dot_map(Agraph_t* gr, int n, int dim, real *x, SparseMatrix polys, SparseMatrix poly_lines, real line_width, const char *line_color, real *x_poly, int *polys_groups, char **labels, float *fsz, float *r, float *g, float *b, - char* opacity, SparseMatrix A, FILE* f) { + const char* opacity, SparseMatrix A, FILE* f) { /* if graph object exist, we just modify some attributes, otherwise we dump the whole graph */ int plot_polyQ = TRUE; agxbuf sbuff; diff --git a/cmd/gvmap/make_map.h b/cmd/gvmap/make_map.h index 917d5f868..f77546708 100644 --- a/cmd/gvmap/make_map.h +++ b/cmd/gvmap/make_map.h @@ -26,7 +26,7 @@ void plot_dot_map(Agraph_t* gr, int n, int dim, real *x, SparseMatrix polys, SparseMatrix poly_lines, real line_width, const char *line_color, real *x_poly, int *polys_groups, char **labels, float *fsz, float *r, float *g, float *b, - char* opacity, SparseMatrix A, FILE*); + const char* opacity, SparseMatrix A, FILE*); void map_optimal_coloring(int seed, SparseMatrix A, float *rgb_r, float *rgb_g, float *rgb_b); void map_palette_optimal_coloring(char *color_scheme, char *lightness, SparseMatrix A, real accuracy, int seed, float **rgb_r, float **rgb_g, float **rgb_b); -- 2.40.0