aboutsummaryrefslogtreecommitdiff
path: root/vcal.c
diff options
context:
space:
mode:
Diffstat (limited to 'vcal.c')
-rw-r--r--vcal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcal.c b/vcal.c
index 7545ccf3..dda509db 100644
--- a/vcal.c
+++ b/vcal.c
@@ -115,15 +115,15 @@ int DEEP_COPY(vcomponent)(vcomponent* a, vcomponent* b) {
FMT_F(vcomponent) {
int seek = 0;
- FOR(int, i, 40) fmtf("_");
+ for (int i = 0; i < 40; i++) fmtf("_");
seek += sprintf(buf + seek, _YELLOW);
seek += sprintf(buf + seek, "\nVComponet (Type := %s)\n", this->type);
seek += sprintf(buf + seek, _RESET);
seek += FMT(TRIE(content_line))(&this->clines, buf + seek);
seek += sprintf(buf + seek, "\nComponents:\n");
- FOR(VECT(vcomponent), i, &this->components) {
- seek += FMT(vcomponent)(GET(VECT(vcomponent))(&this->components, i), buf + seek);
+ FOR(VECT(vcomponent), vcomponent, comp, &this->components) {
+ seek += FMT(vcomponent)(comp, buf + seek);
}
return seek;