From: Matthew Fernandez Date: Sat, 25 Sep 2021 19:26:29 +0000 (-0700) Subject: gv2gml: rename a 'path' parameter to 'cmd' X-Git-Tag: 2.49.2~28^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df92e72262eb0f0775b373b86354e78a6b270cf5;p=graphviz gv2gml: rename a 'path' parameter to 'cmd' 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. --- diff --git a/cmd/tools/gv2gml.c b/cmd/tools/gv2gml.c index 40279a0f8..716ae9e07 100644 --- a/cmd/tools/gv2gml.c +++ b/cmd/tools/gv2gml.c @@ -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; }