diff options
Diffstat (limited to 'libical/examples')
-rw-r--r-- | libical/examples/access_properties_and_parameters.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libical/examples/access_properties_and_parameters.c b/libical/examples/access_properties_and_parameters.c index 176b49a109..8591786bf0 100644 --- a/libical/examples/access_properties_and_parameters.c +++ b/libical/examples/access_properties_and_parameters.c @@ -12,7 +12,6 @@ void get_required_attendees(icalcomponent* event) { icalproperty* p; icalparameter* parameter; - int c=0; assert(event != 0); assert(icalcomponent_isa(event) == ICAL_VEVENT_COMPONENT); @@ -60,7 +59,7 @@ void update_attendees(icalcomponent* event) icalparameter* parameter; assert(event != 0); - assert(icalcomponent_isa(event) == ICAL_VEVENT_COMPONENT); + assert(icalcomponent_isa(event) == ICAL_VEVENT_COMPONENT); for( p = icalcomponent_get_first_property(event,ICAL_ATTENDEE_PROPERTY); @@ -109,7 +108,7 @@ void test_properties() /* Create a new property */ prop = icalproperty_vanew_comment( - strdup("Another Comment"), + "Another Comment", icalparameter_new_cn("A Common Name 1"), icalparameter_new_cn("A Common Name 2"), icalparameter_new_cn("A Common Name 3"), |