summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2022-10-05 16:20:18 -0400
committerAllen Winter <allen.winter@kdab.com>2022-10-05 16:20:18 -0400
commitbdb1ca86fb770b22ab4fdd9db12c927519102c76 (patch)
treea94e7699f0a4963a6eb6d5221a984b9e5780937f /examples
parent101ea9db07ecb3dbfccc4172ebfd919d3621da3f (diff)
downloadlibical-git-bdb1ca86fb770b22ab4fdd9db12c927519102c76.tar.gz
Ensure all vanew_foo() calls finish with (void*)0 (not 0)
Diffstat (limited to 'examples')
-rw-r--r--examples/access_components.c8
-rw-r--r--examples/access_properties_and_parameters.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/examples/access_components.c b/examples/access_components.c
index c0e3985f..0fbc3945 100644
--- a/examples/access_components.c
+++ b/examples/access_components.c
@@ -223,14 +223,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"),
@@ -241,12 +241,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 9988dba0..1f0f92f1 100644
--- a/examples/access_properties_and_parameters.c
+++ b/examples/access_properties_and_parameters.c
@@ -115,7 +115,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);