diff options
author | Allen Winter <allen.winter@kdab.com> | 2022-10-06 15:17:04 -0400 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2022-10-06 15:17:04 -0400 |
commit | 6c0a830af64fb40d1db0f32135dc30c280af6cca (patch) | |
tree | 5fc7bcf5b70e9cf7d1dc36648277f427e97e5859 /examples | |
parent | 537642936828ec21c1fb5543dfe85d9898ed9232 (diff) | |
parent | a3757f078af3049bd6dbab377b13e7cecd08eb31 (diff) | |
download | libical-git-6c0a830af64fb40d1db0f32135dc30c280af6cca.tar.gz |
Merge branch '3.0'
Diffstat (limited to 'examples')
-rw-r--r-- | examples/access_components.c | 8 | ||||
-rw-r--r-- | examples/access_properties_and_parameters.c | 2 | ||||
-rw-r--r-- | examples/errors.c | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/examples/access_components.c b/examples/access_components.c index 88731fd6..11ae45e4 100644 --- a/examples/access_components.c +++ b/examples/access_components.c @@ -219,14 +219,14 @@ icalcomponent* create_new_component_with_va_args() icalproperty_vanew_organizer( "mailto:mrbig@host.com", icalparameter_new_role(ICAL_ROLE_CHAIR), - 0 + NULL ), icalproperty_vanew_attendee( "mailto:employee-A@host.com", icalparameter_new_role(ICAL_ROLE_REQPARTICIPANT), icalparameter_new_rsvp(1), icalparameter_new_cutype(ICAL_CUTYPE_GROUP), - 0 + NULL ), icalproperty_new_description("Project XYZ Review Meeting"), @@ -237,12 +237,12 @@ icalcomponent* create_new_component_with_va_args() icalproperty_vanew_dtstart( atime, icalparameter_new_tzid("US-Eastern"), - 0 + NULL ), icalproperty_vanew_dtend( atime, icalparameter_new_tzid("US-Eastern"), - 0 + NULL ), icalproperty_new_location("1CP Conference Room 4350"), 0 diff --git a/examples/access_properties_and_parameters.c b/examples/access_properties_and_parameters.c index cbaf3cd8..1e5b9b43 100644 --- a/examples/access_properties_and_parameters.c +++ b/examples/access_properties_and_parameters.c @@ -117,7 +117,7 @@ void test_properties() icalparameter_new_cn("A Common Name 2"), icalparameter_new_cn("A Common Name 3"), icalparameter_new_cn("A Common Name 4"), - 0); + (void *)0); /* Iterate through all of the parameters in the property */ for(param = icalproperty_get_first_parameter(prop,ICAL_ANY_PARAMETER); diff --git a/examples/errors.c b/examples/errors.c index 315d3702..5328cfd5 100644 --- a/examples/errors.c +++ b/examples/errors.c @@ -13,13 +13,13 @@ void program_errors() icalerror_clear_errno(); - (void)icalcomponent_new(ICAL_VEVENT_COMPONENT); + icalcomponent *comp = icalcomponent_new(ICAL_VEVENT_COMPONENT); if (icalerrno != ICAL_NO_ERROR){ - fprintf(stderr,"Horrible libical error: %s\n", icalerror_strerror(icalerrno)); } + icalcomponent_free(comp); } void component_errors(icalcomponent *comp) |