]> granicus.if.org Git - graphviz/commitdiff
gv2gml: rename a 'path' parameter to 'cmd'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 25 Sep 2021 19:26:29 +0000 (12:26 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 1 Oct 2021 14:49:27 +0000 (07:49 -0700)
This has no immediate effect. However an upcoming change will introduce a header
include that brings in another 'path' symbol. So this change pre-emptively
squashes the -Wshadow compiler warning that would otherwise be introduced.

Related to #1276.

cmd/tools/gv2gml.c

index 40279a0f8f5892caff1f30bcbef521cb4f0cc4a1..716ae9e077306018d8e2b3a95c729344dfc27749 100644 (file)
@@ -672,15 +672,15 @@ static void usage(int v)
     exit(v);
 }
 
-static char *cmdName(char *path)
+static char *cmdName(char *cmd)
 {
     char *sp;
 
-    sp = strrchr(path, '/');
+    sp = strrchr(cmd, '/');
     if (sp)
         sp++;
     else
-        sp = path;
+        sp = cmd;
     return sp;
 }