summaryrefslogtreecommitdiff
path: root/examples/errors.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/errors.c')
-rw-r--r--examples/errors.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/examples/errors.c b/examples/errors.c
index f50c4c9d..315d3702 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>
@@ -15,9 +19,7 @@ void program_errors()
fprintf(stderr,"Horrible libical error: %s\n",
icalerror_strerror(icalerrno));
-
}
-
}
void component_errors(icalcomponent *comp)
@@ -39,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");
@@ -61,7 +59,5 @@ void component_errors(icalcomponent *comp)
properties in the reply. This following routine makes this
conversion */
-
icalcomponent_convert_errors(comp);
-
}