mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
virsh: rename ret to rc in cmdDomFSInfo
Leave the 'ret' variable for the current function's return value. Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
443fc056a0
commit
44993d312d
@ -13936,7 +13936,7 @@ static bool
|
|||||||
cmdDomFSInfo(vshControl *ctl, const vshCmd *cmd)
|
cmdDomFSInfo(vshControl *ctl, const vshCmd *cmd)
|
||||||
{
|
{
|
||||||
virDomainPtr dom = NULL;
|
virDomainPtr dom = NULL;
|
||||||
int ret = -1;
|
int rc = -1;
|
||||||
size_t i, j;
|
size_t i, j;
|
||||||
virDomainFSInfoPtr *info;
|
virDomainFSInfoPtr *info;
|
||||||
vshTablePtr table = NULL;
|
vshTablePtr table = NULL;
|
||||||
@ -13945,12 +13945,12 @@ cmdDomFSInfo(vshControl *ctl, const vshCmd *cmd)
|
|||||||
if (!(dom = virshCommandOptDomain(ctl, cmd, NULL)))
|
if (!(dom = virshCommandOptDomain(ctl, cmd, NULL)))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
ret = virDomainGetFSInfo(dom, &info, 0);
|
rc = virDomainGetFSInfo(dom, &info, 0);
|
||||||
if (ret < 0) {
|
if (rc < 0) {
|
||||||
vshError(ctl, _("Unable to get filesystem information"));
|
vshError(ctl, _("Unable to get filesystem information"));
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
ninfos = ret;
|
ninfos = rc;
|
||||||
|
|
||||||
if (ninfos == 0) {
|
if (ninfos == 0) {
|
||||||
vshError(ctl, _("No filesystems are mounted in the domain"));
|
vshError(ctl, _("No filesystems are mounted in the domain"));
|
||||||
@ -13994,7 +13994,7 @@ cmdDomFSInfo(vshControl *ctl, const vshCmd *cmd)
|
|||||||
}
|
}
|
||||||
vshTableFree(table);
|
vshTableFree(table);
|
||||||
virshDomainFree(dom);
|
virshDomainFree(dom);
|
||||||
return ret >= 0;
|
return rc >= 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
const vshCmdDef domManagementCmds[] = {
|
const vshCmdDef domManagementCmds[] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user