[PATCH v2 3/5] vz: keep naming convention for domain objects

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

 



see 4385b868
---
 src/vz/vz_driver.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/vz/vz_driver.c b/src/vz/vz_driver.c
index c12832c..2ad3d94 100644
--- a/src/vz/vz_driver.c
+++ b/src/vz/vz_driver.c
@@ -1208,38 +1208,38 @@ vzDomainSetUserPassword(virDomainPtr domain,
     return ret;
 }
 
-static int vzDomainUpdateDeviceFlags(virDomainPtr dom,
+static int vzDomainUpdateDeviceFlags(virDomainPtr domain,
                                      const char *xml,
                                      unsigned int flags)
 {
     int ret = -1;
-    vzConnPtr privconn = dom->conn->privateData;
-    virDomainObjPtr privdom = NULL;
+    vzConnPtr privconn = domain->conn->privateData;
+    virDomainObjPtr dom = NULL;
     virDomainDeviceDefPtr dev = NULL;
     vzDriverPtr driver = privconn->driver;
 
     virCheckFlags(VIR_DOMAIN_AFFECT_LIVE |
                   VIR_DOMAIN_AFFECT_CONFIG, -1);
 
-    if (!(privdom = vzDomObjFromDomain(dom)))
+    if (!(dom = vzDomObjFromDomain(domain)))
         return -1;
 
-    if (vzCheckConfigUpdateFlags(privdom, &flags) < 0)
+    if (vzCheckConfigUpdateFlags(dom, &flags) < 0)
         goto cleanup;
 
-    if (!(dev = virDomainDeviceDefParse(xml, privdom->def, driver->caps,
+    if (!(dev = virDomainDeviceDefParse(xml, dom->def, driver->caps,
                                         driver->xmlopt,
                                         VIR_DOMAIN_XML_INACTIVE)))
         goto cleanup;
 
-    if (prlsdkUpdateDevice(driver, privdom, dev) < 0)
+    if (prlsdkUpdateDevice(driver, dom, dev) < 0)
         goto cleanup;
 
     ret = 0;
  cleanup:
 
     virDomainDeviceDefFree(dev);
-    virObjectUnlock(privdom);
+    virObjectUnlock(dom);
     return ret;
 }
 
-- 
1.8.3.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



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