aboutsummaryrefslogtreecommitdiff
path: root/graphs.c
diff options
context:
space:
mode:
Diffstat (limited to 'graphs.c')
-rw-r--r--graphs.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/graphs.c b/graphs.c
index 4f1692ee..51a26117 100644
--- a/graphs.c
+++ b/graphs.c
@@ -49,10 +49,7 @@ int helper_vcomponent (vcomponent* root, FILE* f) {
fputs("}", f);
}
- vcomponent* child;
- for (size_t i = 0; i < root->components.length; i++) {
- child = GET(VECT(vcomponent))(&root->components, i);
- if (child == NULL) continue;
+ FOR(LLIST, vcomponent, child, &root->components) {
fprintf(f, "\"%p\" -> \"%p\"\n", root, child);
helper_vcomponent(child, f);
}