diff options
author | Allen Winter <allen.winter@kdab.com> | 2022-06-11 11:38:24 -0400 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2022-06-11 12:59:14 -0400 |
commit | 6b74841772981be4c88dc176634bafd2e6ad7b7c (patch) | |
tree | 751d2668b557e4199dedd1d5881fd58e163b04a0 /examples/errors.c | |
parent | 3d033a489cba309d98fb52166fbe77908f3305e7 (diff) | |
parent | a8ef3de84cc5740978a49dcf7b8eeb2cd5fc6cb8 (diff) | |
download | libical-git-flexbison.tar.gz |
Merge branch 'master' into flexbisonflexbison
Diffstat (limited to 'examples/errors.c')
-rw-r--r-- | examples/errors.c | 14 |
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); - } |