diff mbox series

[RFC,2/5] junction: Remove xmlIndentTreeOutput

Message ID 170050642602.123525.1034811730816028179.stgit@manet.1015granger.net (mailing list archive)
State New, archived
Headers show
Series Possible changes to nfs-utils junction support | expand

Commit Message

Chuck Lever Nov. 20, 2023, 6:53 p.m. UTC
From: Chuck Lever <chuck.lever@oracle.com>

Though it doesn't seem to be marked deprecated, xmlIndentTreeOutput
does not appear in recent versions of libxml2. Since

  xmlIndentTreeOutput = 1;

should be the default behavior now, we can remove this statement
without a behavior change.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
---
 support/junction/xml.c |    1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/support/junction/xml.c b/support/junction/xml.c
index ec9586528cc9..aef1cbbd74d3 100644
--- a/support/junction/xml.c
+++ b/support/junction/xml.c
@@ -387,7 +387,6 @@  junction_xml_write(const char *pathname, const char *name, xmlDocPtr doc)
 		return retval;
 
 	retval = FEDFS_ERR_SVRFAULT;
-	xmlIndentTreeOutput = 1;
 	xmlDocDumpFormatMemoryEnc(doc, &buf, &len, "UTF-8", 1);
 	if (len < 0)
 		goto out;