From 97197ef78e6e717066f52e8fe2ad904b231bfba8 Mon Sep 17 00:00:00 2001 From: Aram Sargsyan Date: Mon, 5 Sep 2022 09:59:44 +0000 Subject: [PATCH] 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. (cherry picked from commit a5d412d9243dc0404a321276364d5967fd69ea3a) --- bin/named/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/named/main.c b/bin/named/main.c index 33421faeaa..2645489aee 100644 --- a/bin/named/main.c +++ b/bin/named/main.c @@ -1384,7 +1384,7 @@ main(int argc, char *argv[]) { #endif /* ifdef HAVE_GPERFTOOLS_PROFILER */ #ifdef HAVE_LIBXML2 - xmlInitThreads(); + xmlInitParser(); #endif /* HAVE_LIBXML2 */ /* @@ -1520,7 +1520,7 @@ main(int argc, char *argv[]) { named_os_shutdown(); #ifdef HAVE_LIBXML2 - xmlCleanupThreads(); + xmlCleanupParser(); #endif /* HAVE_LIBXML2 */ #ifdef HAVE_GPERFTOOLS_PROFILER