]> granicus.if.org Git - graphviz/commitdiff
dot2gxl: [nfc] remove the need to cast 'isAnonGraph' parameter
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 3 Feb 2022 03:55:57 +0000 (14:55 +1100)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 4 Feb 2022 08:53:09 +0000 (19:53 +1100)
cmd/tools/gxl2gv.c

index f0a8faa74b159e4a43b33d8779723d7a1dc13a4f..7b29acf6699c3f775f5ce6e05f17246038fb3c83 100644 (file)
@@ -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;