diff options
Diffstat (limited to 'libical/examples')
-rw-r--r-- | libical/examples/Makefile.am | 2 | ||||
-rw-r--r-- | libical/examples/access_properties_and_parameters.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/libical/examples/Makefile.am b/libical/examples/Makefile.am index 470753062f..99e33d3400 100644 --- a/libical/examples/Makefile.am +++ b/libical/examples/Makefile.am @@ -4,6 +4,8 @@ noinst_PROGRAMS = doesnothing LDADD = ../src/libical/libical.a ../src/libicalss/libicalss.la ../src/libicalvcal/libicalvcal.la INCLUDES = -I . -I../src/libical -I$(srcdir)/../src/libical -I../src/libicalss -I../src/libicalvcal +INCLUDES = -I. -I../src/libical -I$(srcdir)/../src/libical -I../src/libicalss -I../src/libicalvcal + doesnothing_SOURCES = \ access_components.c \ access_properties_and_parameters.c \ diff --git a/libical/examples/access_properties_and_parameters.c b/libical/examples/access_properties_and_parameters.c index 8591786bf0..ba3d7fcc0b 100644 --- a/libical/examples/access_properties_and_parameters.c +++ b/libical/examples/access_properties_and_parameters.c @@ -43,7 +43,7 @@ void get_required_attendees(icalcomponent* event) { /* Remember, the caller does not own this string, so you should strdup it if you want to change it. */ - char *attendee = icalproperty_get_attendee(p); + const char *attendee = icalproperty_get_attendee(p); } } @@ -116,9 +116,9 @@ void test_properties() 0); /* Iterate through all of the parameters in the property */ - for(param = icalproperty_get_first_parameter(prop,ICAL_ANY_PROPERTY); + for(param = icalproperty_get_first_parameter(prop,ICAL_ANY_PARAMETER); param != 0; - param = icalproperty_get_next_parameter(prop,ICAL_ANY_PROPERTY)) { + param = icalproperty_get_next_parameter(prop,ICAL_ANY_PARAMETER)) { printf("Prop parameter: %s\n",icalparameter_get_cn(param)); } |