From: Michal Privoznik Date: Wed, 20 Feb 2019 13:14:31 +0000 (+0100) Subject: virTestCompareToULL: Rename local variables X-Git-Tag: v5.1.0-rc1~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9de317d0d1f67ef277682d5eb4802e5ba9aa3374;p=thirdparty%2Flibvirt.git virTestCompareToULL: Rename local variables 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 Reviewed-by: Andrea Bolognani Reviewed-by: Ján Tomko --- diff --git a/tests/testutils.c b/tests/testutils.c index ac86418653..01f3e8bb93 100644 --- a/tests/testutils.c +++ b/tests/testutils.c @@ -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); } /*