aboutsummaryrefslogtreecommitdiffstats
path: root/libical/examples/access_components.c
diff options
context:
space:
mode:
Diffstat (limited to 'libical/examples/access_components.c')
-rw-r--r--libical/examples/access_components.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libical/examples/access_components.c b/libical/examples/access_components.c
index cc5a33d6d2..dc92b64a7c 100644
--- a/libical/examples/access_components.c
+++ b/libical/examples/access_components.c
@@ -7,7 +7,6 @@
#include <stdlib.h> /* for malloc */
#include <stdio.h> /* for printf */
#include <time.h> /* for time() */
-#include "icalmemory.h"
void do_something(icalcomponent *c);
@@ -154,7 +153,7 @@ icalcomponent* create_new_component()
icalcomponent_add_property(
event,
- icalproperty_new_class("PUBLIC")
+ icalproperty_new_class(ICAL_CLASS_PUBLIC)
);
icalcomponent_add_property(
@@ -242,7 +241,7 @@ icalcomponent* create_new_component_with_va_args()
icalproperty_new_description("Project XYZ Review Meeting"),
icalproperty_new_categories("MEETING"),
- icalproperty_new_class("PUBLIC"),
+ icalproperty_new_class(ICAL_CLASS_PUBLIC),
icalproperty_new_created(atime),
icalproperty_new_summary("XYZ Project Review"),
icalproperty_vanew_dtstart(