]> granicus.if.org Git - graphviz/commitdiff
gvpr mkStmts: make 'lbl' parameter const
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 11 Sep 2021 18:30:29 +0000 (11:30 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 18 Sep 2021 22:14:15 +0000 (15:14 -0700)
The pointed to data is not modified within this function.

lib/gvpr/compile.c

index 2442ac6098421ffff611723ffcc4972448fdc769..56c9bbd3acb7f0212541661c0e9c316046ae084f 100644 (file)
@@ -2326,7 +2326,7 @@ static void checkGuard(Exnode_t * gp, char *src, int line)
 /* mkStmts:
  */
 static case_stmt *mkStmts(Expr_t * prog, char *src, case_info * sp,
-                         int cnt, char *lbl, Sfio_t *tmps)
+                          int cnt, const char *lbl, Sfio_t *tmps)
 {
     case_stmt *cs;
     int i;