[patch 3/9] Fix a couple of typos

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

 



A couple of typos:

  1) confusion around the isGuest arg to ScanConfigDir()

  2) forgetting a quot in network interface xml output

Signed-off-by: Mark McLoughlin <markmc@xxxxxxxxxx>

Index: libvirt/qemud/conf.c
===================================================================
--- libvirt.orig/qemud/conf.c
+++ libvirt/qemud/conf.c
@@ -1663,9 +1663,9 @@ int qemudScanConfigDir(struct qemud_serv
 
 /* Scan for all guest and network config files */
 int qemudScanConfigs(struct qemud_server *server) {
-    if (qemudScanConfigDir(server, server->configDir, 0) < 0)
+    if (qemudScanConfigDir(server, server->configDir, 1) < 0)
         return -1;
-    return qemudScanConfigDir(server, server->networkConfigDir, 1);
+    return qemudScanConfigDir(server, server->networkConfigDir, 0);
 }
 
 /* Simple grow-on-demand string buffer */
@@ -1890,7 +1890,7 @@ char *qemudGenerateXML(struct qemud_serv
             goto no_memory;
 
         if (net->type == QEMUD_NET_NETWORK) {
-            if (qemudBufferPrintf(&buf, "      <network name='%s", net->dst.network.name) < 0)
+            if (qemudBufferPrintf(&buf, "      <network name='%s'", net->dst.network.name) < 0)
                 goto no_memory;
 
             if (net->dst.network.tapifname[0] != '\0' &&

-- 


[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]