From: Matthew Fernandez Date: Sun, 20 Nov 2022 00:22:09 +0000 (-0800) Subject: neatogen updateGraph: use a clearer iteration idiom X-Git-Tag: 7.0.3~1^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=93217f76e0c6a9744138d772d8a30611f75f298f;p=graphviz neatogen updateGraph: use a clearer iteration idiom --- diff --git a/lib/neatogen/adjust.c b/lib/neatogen/adjust.c index f4c99b654..08c9d1863 100644 --- a/lib/neatogen/adjust.c +++ b/lib/neatogen/adjust.c @@ -583,13 +583,10 @@ static int sAdjust(void) */ static void updateGraph(void) { - Info_t *ip; - - ip = nodeInfo; for (size_t i = 0; i < nsites; i++) { + Info_t *ip = &nodeInfo[i]; ND_pos(ip->node)[0] = ip->site.coord.x; ND_pos(ip->node)[1] = ip->site.coord.y; - ip++; } }