summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Murchison <murch@fastmail.com>2021-03-18 11:43:51 -0400
committerAllen Winter <allen.winter@kdab.com>2021-04-11 14:29:24 -0400
commitc369ee6c2b57dd6b4212ab456e22a48ddcd713e4 (patch)
treec878a5beaccdf5a17ff0a1622931a692a3ced5b4
parent45ad8c0a2014998aceb289ffbedf0d4f01892666 (diff)
downloadlibical-git-c369ee6c2b57dd6b4212ab456e22a48ddcd713e4.tar.gz
icaltz-util.c: use new struct initializers
-rw-r--r--src/libical/icaltz-util.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/libical/icaltz-util.c b/src/libical/icaltz-util.c
index 7bd091a1..6a45699e 100644
--- a/src/libical/icaltz-util.c
+++ b/src/libical/icaltz-util.c
@@ -408,17 +408,15 @@ icalcomponent *icaltzutil_fetch_timezone(const char *location)
struct zone_context standard =
{ ICAL_XSTANDARD_COMPONENT, NULL, LONG_MIN, LONG_MIN,
- icaltime_null_time(), icaltime_null_time(),
+ ICALTIMETYPE_INITIALIZER, ICALTIMETYPE_INITIALIZER,
NULL, NULL, NULL,
- icalrecurrencetype_from_string("0"),
- icalrecurrencetype_from_string("0")
+ ICALRECURRENCETYPE_INITIALIZER, ICALRECURRENCETYPE_INITIALIZER
};
struct zone_context daylight =
{ ICAL_XDAYLIGHT_COMPONENT, NULL, LONG_MIN, LONG_MIN,
- icaltime_null_time(), icaltime_null_time(),
+ ICALTIMETYPE_INITIALIZER, ICALTIMETYPE_INITIALIZER,
NULL, NULL, NULL,
- icalrecurrencetype_from_string("0"),
- icalrecurrencetype_from_string("0")
+ ICALRECURRENCETYPE_INITIALIZER, ICALRECURRENCETYPE_INITIALIZER
};
struct zone_context *zone;
@@ -788,7 +786,7 @@ icalcomponent *icaltzutil_fetch_timezone(const char *location)
// Add an RDATE to the previous component
// Remove the current component
struct icaldatetimeperiodtype dtp =
- { zone->time, icalperiodtype_null_period() };
+ { zone->time, ICALPERIODTYPE_INITIALIZER };
icalprop = icalproperty_new_rdate(dtp);
icalcomponent_add_property(zone->rdate_comp, icalprop);