From cad3310a7390aad3e16492e8ed922f388f8895ae Mon Sep 17 00:00:00 2001
From: Christopher Byrne <salah.coronya@gmail.com>
Date: Dec 21 2023 07:53:58 +0000
Subject: src/oddjobd.c: Replace deprecated libxml2 calls


xmlInitGlobals is now an alias for xmlInitParser and xmlCleaupGlobals is
now a no-op.

Signed-off-by: Christopher Byrne <salah.coronya@gmail.com>

---

diff --git a/src/oddjobd.c b/src/oddjobd.c
index fb63c02..b27b678 100644
--- a/src/oddjobd.c
+++ b/src/oddjobd.c
@@ -1357,7 +1357,7 @@ load_config(struct oddjob_config *config,
 			filename);
 	}
 
-	xmlInitGlobals();
+	xmlInitParser();
 	doc = xmlParseFile(filename);
 	if (doc == NULL) {
 		fprintf(stderr, "Error parsing configuration from \"%s\".\n",
@@ -1380,7 +1380,6 @@ load_config(struct oddjob_config *config,
 	}
 
 	xmlFreeDoc(doc);
-	xmlCleanupGlobals();
 
 	return parsed;
 }

