]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virVBoxSnapshotConfSaveVboxFile: Don't modify deprecated 'xmlIndentTreeOutput'
authorPeter Krempa <pkrempa@redhat.com>
Mon, 10 Nov 2025 15:54:32 +0000 (16:54 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 11 Nov 2025 20:30:03 +0000 (21:30 +0100)
'xmlIndentTreeOutput' is now deprecated by libxml2.

The default value set by libxml2 is '1', and the vbox driver resides
only inside the standalone daemon where the value will not be changed by
us thus there's no observable change in behaviour.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
src/vbox/vbox_snapshot_conf.c

index b424648368291384e43663808e140960a901c6ca..ff81cd00623b74b0f42e0ae795239742c1ccdad1 100644 (file)
@@ -943,9 +943,6 @@ virVBoxSnapshotConfSaveVboxFile(virVBoxSnapshotConfMachine *machine,
     g_auto(GStrv) secondRegex = NULL;
     int secondRegexResult = 0;
     const int parseFlags = XML_PARSE_NONET | XML_PARSE_NOBLANKS;
-    int oldIndentTreeOutput = xmlIndentTreeOutput;
-
-    xmlIndentTreeOutput = 1;
 
     if (machine == NULL) {
         virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
@@ -1127,8 +1124,6 @@ virVBoxSnapshotConfSaveVboxFile(virVBoxSnapshotConfMachine *machine,
     ret = 0;
 
  cleanup:
-    xmlIndentTreeOutput = oldIndentTreeOutput;
-
     VIR_FREE(currentSnapshot);
     VIR_FREE(timeStamp);