summaryrefslogtreecommitdiff
path: root/examples/access_properties_and_parameters.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/access_properties_and_parameters.c')
-rw-r--r--examples/access_properties_and_parameters.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/examples/access_properties_and_parameters.c b/examples/access_properties_and_parameters.c
index 04df481a..7716edbc 100644
--- a/examples/access_properties_and_parameters.c
+++ b/examples/access_properties_and_parameters.c
@@ -1,4 +1,8 @@
-/* access_properties_and_parameters.c */
+/* access_properties_and_parameters.c
+
+ SPDX-FileCopyrightText: <eric@civicknowledge.com>
+ SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0
+*/
#include <libical/ical.h>
#include <stdlib.h>
@@ -47,7 +51,6 @@ void get_required_attendees(icalcomponent* event)
printf("%s",attendee);
}
}
-
}
/* Here is a similar example. If an attendee has a PARTSTAT of
@@ -93,7 +96,6 @@ void update_attendees(icalcomponent* event)
icalparameter_new_partstat(ICAL_PARTSTAT_TENTATIVE)
);
}
-
}
}
@@ -134,7 +136,7 @@ void test_properties(void)
free(str);
/* Make a copy of the property. Caller owns the memory */
- clone = icalproperty_new_clone(prop);
+ clone = icalproperty_clone(prop);
/* Get a reference to the value within the clone property */
value = icalproperty_get_value(clone);
@@ -146,5 +148,4 @@ void test_properties(void)
/* Frees the original and the clone */
icalproperty_free(clone);
icalproperty_free(prop);
-
}