]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Do not use libxml2 deprecated functions
authorAram Sargsyan <aram@isc.org>
Mon, 5 Sep 2022 09:59:44 +0000 (09:59 +0000)
committerAram Sargsyan <aram@isc.org>
Tue, 6 Sep 2022 08:55:07 +0000 (08:55 +0000)
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.

bin/named/main.c

index 6cf8ad821ecba437d2ee9875ef1f70fdf1930b03..af9b7b9c93c0076e4bfd621550ae79d98f5741c5 100644 (file)
@@ -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