From: Matthew Fernandez Date: Sat, 11 Sep 2021 17:54:13 +0000 (-0700) Subject: gvpr compile: make 'sfx' parameter const X-Git-Tag: 2.49.1~14^2~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b7ad83e406cc978f656b26ed5b5c9078eee49dc3;p=graphviz gvpr compile: make 'sfx' parameter const The pointed to data is not modified within this function. --- diff --git a/lib/gvpr/compile.c b/lib/gvpr/compile.c index df8cae0f6..641b2d657 100644 --- a/lib/gvpr/compile.c +++ b/lib/gvpr/compile.c @@ -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;