]> xenbits.xensource.com Git - libvirt.git/commitdiff
virTestCompareToULL: Rename local variables
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 20 Feb 2019 13:14:31 +0000 (14:14 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 20 Feb 2019 14:54:31 +0000 (15:54 +0100)
The current naming makes it hard for me to see which holds the
expected value and which holds the actual value. Rename them to
make it obvious.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/testutils.c

index ac8641865395d6c0fd95ecaa95d164eb4946b2f7..01f3e8bb9304b9f1d06f3eac586e3edc87d34709 100644 (file)
@@ -822,16 +822,16 @@ int
 virTestCompareToULL(unsigned long long content,
                     unsigned long long src)
 {
-    VIR_AUTOFREE(char *) strcontent = NULL;
-    VIR_AUTOFREE(char *) strsrc = NULL;
+    VIR_AUTOFREE(char *) expectStr = NULL;
+    VIR_AUTOFREE(char *) actualStr = NULL;
 
-    if (virAsprintf(&strcontent, "%llu", content) < 0)
+    if (virAsprintf(&expectStr, "%llu", content) < 0)
         return -1;
 
-    if (virAsprintf(&strsrc, "%llu", src) < 0)
+    if (virAsprintf(&actualStr, "%llu", src) < 0)
         return -1;
 
-    return virTestCompareToString(strcontent, strsrc);
+    return virTestCompareToString(expectStr, actualStr);
 }
 
 /*