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 a5d412d924)
This commit is contained in:
Aram Sargsyan 2022-09-05 09:59:44 +00:00
parent 7be0594be9
commit 97197ef78e

View file

@ -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