提交 9de317d0 编写于 作者: M Michal Privoznik

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: NMichal Privoznik <mprivozn@redhat.com>
Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 86d1f086
......@@ -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);
}
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册