aboutsummaryrefslogtreecommitdiff
path: root/graphs.c
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@hornquist.se>2019-03-08 10:05:35 +0100
committerHugo Hörnquist <hugo@hornquist.se>2019-03-08 10:05:35 +0100
commit0dff6c5d179aeb9e1ba3fc5f4dd679987e342036 (patch)
treec43ef6a0ef0fe6f684928a226a0f439975b20e01 /graphs.c
parentWork on recuring event stream. (diff)
downloadcalp-0dff6c5d179aeb9e1ba3fc5f4dd679987e342036.tar.gz
calp-0dff6c5d179aeb9e1ba3fc5f4dd679987e342036.tar.xz
Remove C vector library.
Diffstat (limited to '')
-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);
}