From 44993d312dfaa13b4502307a7157d6605d00d5fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Tomko?= Date: Tue, 12 Feb 2019 07:48:59 +0100 Subject: [PATCH] virsh: rename ret to rc in cmdDomFSInfo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Leave the 'ret' variable for the current function's return value. Signed-off-by: Ján Tomko --- tools/virsh-domain.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index 630761e40e..651766cd84 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -13936,7 +13936,7 @@ static bool cmdDomFSInfo(vshControl *ctl, const vshCmd *cmd) { virDomainPtr dom = NULL; - int ret = -1; + int rc = -1; size_t i, j; virDomainFSInfoPtr *info; vshTablePtr table = NULL; @@ -13945,12 +13945,12 @@ cmdDomFSInfo(vshControl *ctl, const vshCmd *cmd) if (!(dom = virshCommandOptDomain(ctl, cmd, NULL))) return false; - ret = virDomainGetFSInfo(dom, &info, 0); - if (ret < 0) { + rc = virDomainGetFSInfo(dom, &info, 0); + if (rc < 0) { vshError(ctl, _("Unable to get filesystem information")); goto cleanup; } - ninfos = ret; + ninfos = rc; if (ninfos == 0) { vshError(ctl, _("No filesystems are mounted in the domain")); @@ -13994,7 +13994,7 @@ cmdDomFSInfo(vshControl *ctl, const vshCmd *cmd) } vshTableFree(table); virshDomainFree(dom); - return ret >= 0; + return rc >= 0; } const vshCmdDef domManagementCmds[] = {