]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: qemublock: Rename variables in anticipation of new tests
authorPeter Krempa <pkrempa@redhat.com>
Fri, 16 Mar 2018 16:11:29 +0000 (17:11 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 7 May 2018 13:38:59 +0000 (15:38 +0200)
New tests will add new data structures so rename the 'data' structure.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
tests/qemublocktest.c

index bd628295ff8929c05ca72e9cb4dc61851d684c08..7eef9f286a1006f5fbbe7abb9e19651940bc199f 100644 (file)
@@ -117,15 +117,16 @@ static int
 mymain(void)
 {
     int ret = 0;
-    struct testBackingXMLjsonXMLdata data;
+    struct testBackingXMLjsonXMLdata xmljsonxmldata;
 
     virTestCounterReset("qemu storage source xml->json->xml ");
 
 #define TEST_JSON_FORMAT(tpe, xmlstr) \
     do { \
-        data.type = tpe; \
-        data.xml = xmlstr; \
-        if (virTestRun(virTestCounterNext(), testBackingXMLjsonXML, &data) < 0) \
+        xmljsonxmldata.type = tpe; \
+        xmljsonxmldata.xml = xmlstr; \
+        if (virTestRun(virTestCounterNext(), testBackingXMLjsonXML, \
+                       &xmljsonxmldata) < 0) \
             ret = -1; \
     } while (0)