diff options
author | Hugo Hörnquist <hugo@hornquist.se> | 2019-10-03 23:56:59 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@hornquist.se> | 2019-10-03 23:56:59 +0200 |
commit | 60d51e5700a55bc3ae17e34f9f3da1d4653a3026 (patch) | |
tree | 7ae258360215ce63c591204f5ba8ec7080305f1e /src/calendar.c | |
parent | Fix problem with no end date. (diff) | |
download | calp-60d51e5700a55bc3ae17e34f9f3da1d4653a3026.tar.gz calp-60d51e5700a55bc3ae17e34f9f3da1d4653a3026.tar.xz |
Everything seems to parse now.
Diffstat (limited to '')
-rw-r--r-- | src/calendar.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/calendar.c b/src/calendar.c index a90dfe44..7d8d598e 100644 --- a/src/calendar.c +++ b/src/calendar.c @@ -47,8 +47,7 @@ int handle_file(SCM cal, char* path) { /* NAME is the `fancy' name of the calendar. */ // vcomponent_push_val(cal, "NAME", basename(path)); // vcomponent_push_val(cal, "X-HNH-SOURCETYPE", "file"); - SCM line = scm_make_vline(); - scm_struct_set_x(line, vline_value, scm_from_utf8_string("file")); + SCM line = scm_make_vline(scm_from_utf8_string("file")); scm_add_line_x(cal, scm_from_utf8_string("X-HNH-SOURCETYPE"), line); char* resolved_path = realpath(path, NULL); open_ics (resolved_path, cal); @@ -73,8 +72,7 @@ int handle_dir(SCM cal, char* path) { /* NAME is the `fancy' name of the calendar. */ // vcomponent_push_val(cal, "NAME", basename(path)); - SCM line = scm_make_vline(); - scm_struct_set_x(line, vline_value, scm_from_utf8_string("vdir")); + SCM line = scm_make_vline(scm_from_utf8_string("vdir")); scm_add_line_x(cal, scm_from_utf8_string("X-HNH-SOURCETYPE"), line); struct dirent* d; |