X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fwebserver.c;h=24fd560211f6d2c7ee87c74ee568cf073a7d7e38;hb=6d051cee6f669b6ecd950e933a95644f3cf097ea;hp=9d838ef0c11d811d46c57403d60a9c75da2a2fe7;hpb=4b104bf1296e58ea5cad097401297bd8ca08d205;p=citadel.git diff --git a/webcit/webserver.c b/webcit/webserver.c index 9d838ef0c..24fd56021 100644 --- a/webcit/webserver.c +++ b/webcit/webserver.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996-2016 by the citadel.org team + * Copyright (c) 1996-2020 by the citadel.org team * * This program is open source software. You can redistribute it and/or * modify it under the terms of the GNU General Public License version 3. @@ -234,7 +234,7 @@ int main(int argc, char **argv) /* Tell 'em who's in da house */ syslog(LOG_NOTICE, "%s", PACKAGE_STRING); - syslog(LOG_NOTICE, "Copyright (C) 1996-2015 by the citadel.org team"); + syslog(LOG_NOTICE, "Copyright (C) 1996-2020 by the citadel.org team"); syslog(LOG_NOTICE, " "); syslog(LOG_NOTICE, "This program is open source software: you can redistribute it and/or"); syslog(LOG_NOTICE, "modify it under the terms of the GNU General Public License, version 3."); @@ -272,7 +272,12 @@ int main(int argc, char **argv) } /* Tell libical to return an error instead of aborting if it sees badly formed iCalendar data. */ - icalerror_errors_are_fatal = 0; + +#ifdef LIBICAL_ICAL_EXPORT // cheap and sleazy way to detect libical >=2.0 + icalerror_set_errors_are_fatal(0); +#else + icalerror_errors_are_fatal = 0; +#endif /* Use our own prefix on tzid's generated from system tzdata */ icaltimezone_set_tzid_prefix("/citadel.org/"); @@ -283,7 +288,7 @@ int main(int argc, char **argv) * wcsession struct to which the thread is currently bound. */ if (pthread_key_create(&MyConKey, NULL) != 0) { - syslog(LOG_EMERG, "Can't create TSD key: %s", strerror(errno)); + syslog(LOG_ERR, "Can't create TSD key: %s", strerror(errno)); } InitialiseSemaphores(); @@ -295,7 +300,7 @@ int main(int argc, char **argv) */ #ifdef HAVE_OPENSSL if (pthread_key_create(&ThreadSSL, NULL) != 0) { - syslog(LOG_EMERG, "Can't create TSD key: %s", strerror(errno)); + syslog(LOG_ERR, "Can't create TSD key: %s", strerror(errno)); } #endif