From: Matthew Fernandez Date: Sat, 14 Aug 2021 21:13:46 +0000 (-0700) Subject: dot_one_poly: take a const pointer for a string that is not modified X-Git-Tag: 2.49.0~9^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2df610b43ef6913d7fa2908eb96da53a67e1bd6;p=graphviz dot_one_poly: take a const pointer for a string that is not modified --- diff --git a/cmd/gvmap/make_map.c b/cmd/gvmap/make_map.c index 262bc63b6..ec6d99868 100644 --- a/cmd/gvmap/make_map.c +++ b/cmd/gvmap/make_map.c @@ -265,7 +265,8 @@ static void dot_polygon(agxbuf *sbuff, int np, float *xp, float *yp, real line_w } } -static void dot_one_poly(agxbuf *sbuff, real line_width, int fill, int np, float *xp, float *yp, char *cstring){ +static void dot_one_poly(agxbuf *sbuff, real line_width, int fill, int np, + float *xp, float *yp, const char *cstring) { dot_polygon(sbuff, np, xp, yp, line_width, fill, cstring); }