[libvirt PATCH v2 33/51] domain_conf: Use virXMLPropTristateXXX in virDomainAudioJackParse

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Tim Wiederhake <twiederh@xxxxxxxxxx>
---
 src/conf/domain_conf.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index f8793237d4..7714b58a6a 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -13823,19 +13823,12 @@ static int
 virDomainAudioJackParse(virDomainAudioIOJackPtr def,
                         xmlNodePtr node)
 {
-    g_autofree char *exactName = virXMLPropString(node, "exactName");
-
     def->serverName = virXMLPropString(node, "serverName");
     def->clientName = virXMLPropString(node, "clientName");
     def->connectPorts = virXMLPropString(node, "connectPorts");
 
-    if (exactName &&
-        ((def->exactName =
-          virTristateBoolTypeFromString(exactName)) <= 0)) {
-        virReportError(VIR_ERR_XML_ERROR,
-                       _("unknown 'exactName' value '%s'"), exactName);
+    if (virXMLPropTristateBool(node, "exactName", false, &def->exactName) < 0)
         return -1;
-    }
 
     return 0;
 }
-- 
2.26.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux