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@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to