]> granicus.if.org Git - graphviz/commitdiff
dot_one_poly: take a const pointer for a string that is not modified
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 14 Aug 2021 21:13:46 +0000 (14:13 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 23 Aug 2021 14:57:19 +0000 (07:57 -0700)
cmd/gvmap/make_map.c

index 262bc63b6c2b7856c034b822db126bde92a325f1..ec6d9986839c2cd488934615b86515d1ffecb767 100644 (file)
@@ -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);
 }