mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu: monitor: s/ret/rc/ in UpdateVideoSize functions
Use 'rc' to temporarily store the subfunction return values, instead of ret. Signed-off-by: Ján Tomko <jtomko@redhat.com> Acked-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
8eacdff4c8
commit
63427110b6
@ -1204,15 +1204,15 @@ qemuMonitorUpdateVideoMemorySize(qemuMonitorPtr mon,
|
|||||||
virDomainVideoDefPtr video,
|
virDomainVideoDefPtr video,
|
||||||
const char *videoName)
|
const char *videoName)
|
||||||
{
|
{
|
||||||
int ret = -1;
|
int rc = -1;
|
||||||
VIR_AUTOFREE(char *) path = NULL;
|
VIR_AUTOFREE(char *) path = NULL;
|
||||||
|
|
||||||
QEMU_CHECK_MONITOR(mon);
|
QEMU_CHECK_MONITOR(mon);
|
||||||
|
|
||||||
ret = qemuMonitorJSONFindLinkPath(mon, videoName,
|
rc = qemuMonitorJSONFindLinkPath(mon, videoName,
|
||||||
video->info.alias, &path);
|
video->info.alias, &path);
|
||||||
if (ret < 0) {
|
if (rc < 0) {
|
||||||
if (ret == -2)
|
if (rc == -2)
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("Failed to find QOM Object path for "
|
_("Failed to find QOM Object path for "
|
||||||
"device '%s'"), videoName);
|
"device '%s'"), videoName);
|
||||||
@ -1234,15 +1234,15 @@ qemuMonitorUpdateVideoVram64Size(qemuMonitorPtr mon,
|
|||||||
virDomainVideoDefPtr video,
|
virDomainVideoDefPtr video,
|
||||||
const char *videoName)
|
const char *videoName)
|
||||||
{
|
{
|
||||||
int ret = -1;
|
int rc = -1;
|
||||||
VIR_AUTOFREE(char *) path = NULL;
|
VIR_AUTOFREE(char *) path = NULL;
|
||||||
|
|
||||||
QEMU_CHECK_MONITOR(mon);
|
QEMU_CHECK_MONITOR(mon);
|
||||||
|
|
||||||
ret = qemuMonitorJSONFindLinkPath(mon, videoName,
|
rc = qemuMonitorJSONFindLinkPath(mon, videoName,
|
||||||
video->info.alias, &path);
|
video->info.alias, &path);
|
||||||
if (ret < 0) {
|
if (rc < 0) {
|
||||||
if (ret == -2)
|
if (rc == -2)
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("Failed to find QOM Object path for "
|
_("Failed to find QOM Object path for "
|
||||||
"device '%s'"), videoName);
|
"device '%s'"), videoName);
|
||||||
|
Loading…
Reference in New Issue
Block a user