From: Matthew Fernandez Date: Thu, 3 Feb 2022 03:55:57 +0000 (+1100) Subject: dot2gxl: [nfc] remove the need to cast 'isAnonGraph' parameter X-Git-Tag: 3.0.0~43^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e09cc381e53ece08529dd35d27a7a436dd9ab0f;p=graphviz dot2gxl: [nfc] remove the need to cast 'isAnonGraph' parameter --- diff --git a/cmd/tools/gxl2gv.c b/cmd/tools/gxl2gv.c index f0a8faa74..7b29acf66 100644 --- a/cmd/tools/gxl2gv.c +++ b/cmd/tools/gxl2gv.c @@ -211,7 +211,7 @@ static char *mapLookup(Dt_t * nm, char *name) return 0; } -static int isAnonGraph(char *name) +static int isAnonGraph(const char *name) { if (*name++ != '%') return 0; @@ -468,7 +468,7 @@ startElementHandler(void *userData, const char *name, const char **atts) push_subg(g); } else { Agraph_t *subg; - if (isAnonGraph((char *) id)) { + if (isAnonGraph(id)) { static int anon_id = 1; snprintf(buf, sizeof(buf), "%%%d", anon_id++); id = buf;