]> granicus.if.org Git - graphviz/commitdiff
graphml2gv main: remove shadowing of 'G'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 15 Jan 2023 00:09:41 +0000 (16:09 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 15 Jan 2023 17:51:26 +0000 (09:51 -0800)
cmd/tools/graphml2gv.c

index 7b11ef8064be8a0846e8a0119f1210051b521a0b..e9f08944c8dbca7174250bede15d342f1f33d425 100644 (file)
@@ -502,7 +502,7 @@ nameOf (char* name, int cnt)
 
 int main(int argc, char **argv)
 {
-    Agraph_t *G;
+    Agraph_t *graph;
     Agraph_t *prev = 0;
     FILE *inFile;
     int rv = 0, gcnt = 0;
@@ -510,15 +510,15 @@ int main(int argc, char **argv)
 #ifdef HAVE_EXPAT
     initargs(argc, argv);
     while ((inFile = getFile())) {
-       while ((G = graphml_to_gv(nameOf(gname, gcnt), inFile, &rv))) {
+       while ((graph = graphml_to_gv(nameOf(gname, gcnt), inFile, &rv))) {
            gcnt++;
            if (prev)
                agclose(prev);
-           prev = G;
+           prev = graph;
            if (Verbose) 
                fprintf (stderr, "%s: %d nodes %d edges\n",
-                   agnameof (G), agnnodes(G), agnedges(G));
-           agwrite(G, outFile);
+                   agnameof(graph), agnnodes(graph), agnedges(graph));
+           agwrite(graph, outFile);
            fflush(outFile);
        }
     }