aboutsummaryrefslogtreecommitdiffstats
path: root/libical/examples
diff options
context:
space:
mode:
authorJP Rosevear <jpr@src.gnome.org>2001-01-24 04:22:40 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-01-24 04:22:40 +0800
commit4028f454b6c274fa093056180af8d11e5c7bfd1e (patch)
tree0152cebbfed39e61ca4fb959cbaa49b5a8b3f528 /libical/examples
parentbf4a1512b2fc7b83ce723ecafbb02947e577e7d8 (diff)
downloadgsoc2013-evolution-4028f454b6c274fa093056180af8d11e5c7bfd1e.tar.gz
gsoc2013-evolution-4028f454b6c274fa093056180af8d11e5c7bfd1e.tar.zst
gsoc2013-evolution-4028f454b6c274fa093056180af8d11e5c7bfd1e.zip
Import clean up
svn path=/trunk/; revision=7751
Diffstat (limited to 'libical/examples')
-rw-r--r--libical/examples/Makefile.am2
-rw-r--r--libical/examples/access_properties_and_parameters.c6
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));
}