From: Matthew Fernandez Date: Wed, 28 Dec 2022 18:10:03 +0000 (-0800) Subject: common writenodeandport: remove shadowing of 'port' global X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b98d3ac290ec040f273ee5389f9b7d94b4412765;p=graphviz common writenodeandport: remove shadowing of 'port' global --- diff --git a/lib/common/output.c b/lib/common/output.c index 82faa2859..ed23f769e 100644 --- a/lib/common/output.c +++ b/lib/common/output.c @@ -94,16 +94,15 @@ static char* canon (graph_t *g, char* s) return cs; } -static void writenodeandport(FILE * f, node_t * node, char *port) -{ +static void writenodeandport(FILE *f, node_t *node, char *portname) { char *name; if (IS_CLUST_NODE(node)) name = canon (agraphof(node), strchr(agnameof(node), ':') + 1); else name = agcanonStr (agnameof(node)); printstring(f, " ", name); /* slimey i know */ - if (port && *port) - printstring(f, ":", agcanonStr(port)); + if (portname && *portname) + printstring(f, ":", agcanonStr(portname)); } /* _write_plain: