aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-02-23 21:09:30 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-02-23 21:09:30 +0100
commit1b71eb8175de976045406035420f62c79a2fc91e (patch)
treea3c5bcd98b50628fbb7ca735bf810f5c30900e3a /main.c
parentEven more work. (diff)
downloadcalp-1b71eb8175de976045406035420f62c79a2fc91e.tar.gz
calp-1b71eb8175de976045406035420f62c79a2fc91e.tar.xz
Vill inte.
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index 80e01817..78e631e8 100644
--- a/main.c
+++ b/main.c
@@ -57,15 +57,15 @@ int main (int argc, char** argv) {
for (size_t j = 0; j < cal->components.length; j++) {
vcomponent* ev = cal->components[j];
- printf("component %s, [%u] children\n", ev->type, ev->components.length);
+ // printf("component %s, [%u] children\n", ev->type, ev->components.length);
if (strcmp(ev->type, "VEVENT") != 0) continue;
content_line* cl = get_property(ev, "SUMMARY");
strbuf* s = cl->data.cur->value->key;
+ char* m = s->mem;
printf("%3lu : %3lu | %s | %s\n",
i + 1, j + 1,
- filename,
- s->mem);
+ filename, m);
}
}
} else if (strcmp(args.argv[0], "-g") == 0) {