]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virxml: Fix virXMLPropTristateBoolAllowDefault() documentation
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 25 Mar 2026 14:41:47 +0000 (15:41 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 26 Mar 2026 11:43:43 +0000 (12:43 +0100)
The documentation to virXMLPropTristateBoolAllowDefault() refers
to itself while it meant to refer to virXMLPropTristateBool().

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virxml.c

index 274f0725981b5b9dadc935b4727398006911b277..beb53013788421fe21da5c01878de4749ae9c9be 100644 (file)
@@ -525,13 +525,13 @@ virXMLPropTristateBool(xmlNodePtr node,
 }
 
 
-/* Same as virXMLPropTristateBoolAllowDefault, but will accept the
- * value 'default' and convert it to VIR_TRISTATE_BOOL_ABSENT instead
- * of rejecting it with an error. Should only be used for backwards
- * compatibility reasons, and specifically to parse XML files where a
- * property having value VIR_TRISTATE_BOOL_ABSENT has historically
- * resulted in it being formatted with value 'default' instead of
- * being omitted entirely */
+/* Same as virXMLPropTristateBool, but will accept the value 'default'
+ * and convert it to VIR_TRISTATE_BOOL_ABSENT instead of rejecting it
+ * with an error. Should only be used for backwards compatibility
+ * reasons, and specifically to parse XML files where a property
+ * having value VIR_TRISTATE_BOOL_ABSENT has historically resulted in
+ * it being formatted with value 'default' instead of being omitted
+ * entirely. */
 int
 virXMLPropTristateBoolAllowDefault(xmlNodePtr node,
                                    const char *name,