]> granicus.if.org Git - graphviz/commitdiff
gvpr compile: make 'sfx' parameter const
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 11 Sep 2021 17:54:13 +0000 (10:54 -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 df8cae0f6fdd7c5bf450ac2138fddf2cbe108f8c..641b2d657d362ecaba7401db195ccc4a5401d427 100644 (file)
@@ -2272,8 +2272,7 @@ static Exdisc_t *initDisc(Gpr_t * state)
  * typed expression.
  */
 static Exnode_t *compile(Expr_t * prog, char *src, char *input, int line,
-                        char *lbl, char *sfx, int kind)
-{
+                         char *lbl, const char *sfx, int kind) {
     Exnode_t *e = 0;
     Sfio_t *sf;
     Sfio_t *prefix;