summaryrefslogtreecommitdiff
path: root/examples/errors.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/errors.c')
-rw-r--r--examples/errors.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/examples/errors.c b/examples/errors.c
index 8952cb7c..0f2ae1d0 100644
--- a/examples/errors.c
+++ b/examples/errors.c
@@ -1,4 +1,8 @@
-/* errors.c */
+/* errors.c
+
+ SPDX-FileCopyrightText: <eric@civicknowledge.com>
+ SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0
+*/
#include <libical/ical.h>
@@ -37,17 +41,13 @@ void component_errors(icalcomponent *comp)
p != 0;
p = icalcomponent_get_next_property(comp,ICAL_XLICERROR_PROPERTY))
{
-
printf("-- The error is %s:\n",icalproperty_get_xlicerror(p));
}
-
-
/* Check the component for iTIP compilance, and add more
X-LIC-ERROR properties if it is non-compilant. */
icalrestriction_check(comp);
-
/* Count the new errors. */
if(errors != icalcomponent_count_errors(comp)){
printf(" -- The component also has iTIP restriction errors \n");
@@ -59,7 +59,5 @@ void component_errors(icalcomponent *comp)
properties in the reply. This following routine makes this
conversion */
-
icalcomponent_convert_errors(comp);
-
}