From: Matthew Fernandez Date: Sat, 29 May 2021 21:04:40 +0000 (-0700) Subject: remove shadowing of path in gvplugin_activate X-Git-Tag: 2.47.3~15^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=965593e09c620d95d185cc4f330baeee90dfd029;p=graphviz remove shadowing of path in gvplugin_activate This squashes a -Wshadow compiler warning. --- diff --git a/lib/gvc/gvplugin.c b/lib/gvc/gvplugin.c index 3df6a865c..d59199d20 100644 --- a/lib/gvc/gvplugin.c +++ b/lib/gvc/gvplugin.c @@ -129,7 +129,9 @@ boolean gvplugin_install(GVC_t * gvc, api_t api, const char *typestr, * manually changed in the config file. */ static boolean gvplugin_activate(GVC_t * gvc, api_t api, - const char *typestr, char *name, char *path, gvplugin_installed_t * typeptr) + const char *typestr, char *name, + char *plugin_path, + gvplugin_installed_t * typeptr) { gvplugin_available_t *pnext; @@ -140,7 +142,7 @@ static boolean gvplugin_activate(GVC_t * gvc, api_t api, if ((strcasecmp(typestr, pnext->typestr) == 0) && (strcasecmp(name, pnext->package->name) == 0) && (pnext->package->path != 0) - && (strcasecmp(path, pnext->package->path) == 0)) { + && (strcasecmp(plugin_path, pnext->package->path) == 0)) { pnext->typeptr = typeptr; return TRUE; }