From: Aram Sargsyan Date: Mon, 5 Sep 2022 09:59:44 +0000 (+0000) Subject: Do not use libxml2 deprecated functions X-Git-Tag: v9.19.5~14^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5d412d9243dc0404a321276364d5967fd69ea3a;p=thirdparty%2Fbind9.git Do not use libxml2 deprecated functions The usage of xmlInitThreads() and xmlCleanupThreads() functions in libxml2 is now marked as deprecated, and these functions will be made private in the future. Use xmlInitParser() and xmlCleanupParser() instead of them. --- diff --git a/bin/named/main.c b/bin/named/main.c index 6cf8ad821ec..af9b7b9c93c 100644 --- a/bin/named/main.c +++ b/bin/named/main.c @@ -1363,7 +1363,7 @@ main(int argc, char *argv[]) { #endif /* ifdef HAVE_GPERFTOOLS_PROFILER */ #ifdef HAVE_LIBXML2 - xmlInitThreads(); + xmlInitParser(); #endif /* HAVE_LIBXML2 */ /* @@ -1484,7 +1484,7 @@ main(int argc, char *argv[]) { named_os_shutdown(); #ifdef HAVE_LIBXML2 - xmlCleanupThreads(); + xmlCleanupParser(); #endif /* HAVE_LIBXML2 */ #ifdef HAVE_GPERFTOOLS_PROFILER