diff options
author | JP Rosevear <jpr@src.gnome.org> | 2001-01-24 03:20:44 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2001-01-24 03:20:44 +0800 |
commit | fd279723663879e742e53d7b3503248f6af91791 (patch) | |
tree | 09233c88d6c42b5bb324be7c64a8f8c64ff02846 /libical/examples | |
parent | 34bcd381ce1985cc762a896f15d427e368af95e5 (diff) | |
download | gsoc2013-evolution-fd279723663879e742e53d7b3503248f6af91791.tar gsoc2013-evolution-fd279723663879e742e53d7b3503248f6af91791.tar.gz gsoc2013-evolution-fd279723663879e742e53d7b3503248f6af91791.tar.bz2 gsoc2013-evolution-fd279723663879e742e53d7b3503248f6af91791.tar.lz gsoc2013-evolution-fd279723663879e742e53d7b3503248f6af91791.tar.xz gsoc2013-evolution-fd279723663879e742e53d7b3503248f6af91791.tar.zst gsoc2013-evolution-fd279723663879e742e53d7b3503248f6af91791.zip |
This commit was generated by cvs2svn to compensate for changes in r7747,
which included commits to RCS files with non-trunk default branches.
svn path=/trunk/; revision=7748
Diffstat (limited to 'libical/examples')
-rw-r--r-- | libical/examples/access_components.c | 12 | ||||
-rw-r--r-- | libical/examples/parse_text.c | 4 |
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); |