]> granicus.if.org Git - graphviz/commitdiff
common fullColor: mark function inputs const
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 28 Jan 2023 16:38:06 +0000 (08:38 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 30 Jan 2023 15:43:10 +0000 (07:43 -0800)
lib/common/colxlate.c

index d4a967f2197044694459830685e2d3c1a9d50b68..7fe3120863c451894adc070d7a9f2838e0ec14b3 100644 (file)
@@ -159,7 +159,7 @@ char *canontoken(char *str)
 /* fullColor:
  * Return "/prefix/str"
  */
-static char *fullColor(agxbuf *xb, char *prefix, char *str) {
+static char *fullColor(agxbuf *xb, const char *prefix, const char *str) {
   agxbprint(xb, "/%s/%s", prefix, str);
   return agxbuse(xb);
 }