From: Matthew Fernandez Date: Wed, 28 Dec 2022 22:00:14 +0000 (-0800) Subject: circogen position: remove shadowing of 'path' global X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=87a21664cf751a52389981b1d57140c0dd1b1269;p=graphviz circogen position: remove shadowing of 'path' global --- diff --git a/lib/circogen/circpos.c b/lib/circogen/circpos.c index 828c73bc8..febc2e60a 100644 --- a/lib/circogen/circpos.c +++ b/lib/circogen/circpos.c @@ -326,7 +326,7 @@ positionChildren(posinfo_t *pi, posstate *stp, int length, double min_dist) * Finally, positionChildren is called to do the actual positioning. * If length is 1, keeps track of minimum and maximum child angle. */ -static double position(int childCount, int length, nodelist_t *path, +static double position(int childCount, int length, nodelist_t *nodepath, block_t * sn, double min_dist) { nodelistitem_t *item; @@ -350,7 +350,7 @@ static double position(int childCount, int length, nodelist_t *path, state.firstAngle = -1; state.lastAngle = -1; - for (item = path->first; item; item = item->next) { + for (item = nodepath->first; item; item = item->next) { n = item->curr; theta = counter * state.nodeAngle;