aboutsummaryrefslogtreecommitdiffstats
path: root/libical/examples
diff options
context:
space:
mode:
Diffstat (limited to 'libical/examples')
-rw-r--r--libical/examples/access_components.c12
-rw-r--r--libical/examples/parse_text.c4
2 files changed, 6 insertions, 10 deletions
diff --git a/libical/examples/access_components.c b/libical/examples/access_components.c
index 18fc6a6144..cc5a33d6d2 100644
--- a/libical/examples/access_components.c
+++ b/libical/examples/access_components.c
@@ -37,13 +37,13 @@ icalcomponent* create_new_component()
/* variable definitions */
icalcomponent* calendar;
icalcomponent* event;
- struct icaltimetype atime = icaltime_from_timet( time(0),0,0);
+ struct icaltimetype atime = icaltime_from_timet( time(0),0);
struct icalperiodtype rtime;
icalproperty* property;
/* Define a time type that will use as data later. */
- rtime.start = icaltime_from_timet( time(0),0,0);
- rtime.end = icaltime_from_timet( time(0),0,0);
+ rtime.start = icaltime_from_timet( time(0),0);
+ rtime.end = icaltime_from_timet( time(0),0);
rtime.end.hour++;
/* Create calendar and add properties */
@@ -205,11 +205,11 @@ icalcomponent* create_new_component_with_va_args()
/* This is a similar set up to the last routine */
icalcomponent* calendar;
- struct icaltimetype atime = icaltime_from_timet( time(0),0,0);
+ struct icaltimetype atime = icaltime_from_timet( time(0),0);
struct icalperiodtype rtime;
- rtime.start = icaltime_from_timet( time(0),0,0);
- rtime.end = icaltime_from_timet( time(0),0,0);
+ rtime.start = icaltime_from_timet( time(0),0);
+ rtime.end = icaltime_from_timet( time(0),0);
rtime.end.hour++;
/* Some of these routines are the same as those in the previous
diff --git a/libical/examples/parse_text.c b/libical/examples/parse_text.c
index 6de3e76dd5..b7eba43b8a 100644
--- a/libical/examples/parse_text.c
+++ b/libical/examples/parse_text.c
@@ -56,10 +56,6 @@ void parse_text(int argc, char* argv[])
if (c != 0){
printf("%s",icalcomponent_as_ical_string(c));
- /* Tell the parser that the caller will take ownership of
- this component */
- icalparser_claim(parser);
-
printf("\n---------------\n");
icalcomponent_free(c);