From: Matthew Fernandez Date: Sat, 19 Nov 2022 23:59:14 +0000 (-0800) Subject: neatogen freeNodes: use clearer iteration idiom X-Git-Tag: 7.0.3~1^2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=006ec5c742d317ef3e0964eb4d1860f07f43477a;p=graphviz neatogen freeNodes: use clearer iteration idiom --- diff --git a/lib/neatogen/adjust.c b/lib/neatogen/adjust.c index 029b39882..e8d2d3d52 100644 --- a/lib/neatogen/adjust.c +++ b/lib/neatogen/adjust.c @@ -74,11 +74,8 @@ static void setBoundBox(Point * ll, Point * ur) */ static void freeNodes(void) { - Info_t *ip = nodeInfo; - for (size_t i = 0; i < nsites; i++) { - breakPoly(&ip->poly); - ip++; + breakPoly(&nodeInfo[i].poly); } polyFree(); infoinit(); /* Free vertices */