mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
qemu: monitor: @running in qemuMonitorGetStatus is always non-NULL
Add the attribute and remove the check.
This commit is contained in:
parent
81d14c0252
commit
a745d83fe0
@ -1586,9 +1586,9 @@ qemuMonitorGetStatus(qemuMonitorPtr mon,
|
||||
{
|
||||
VIR_DEBUG("mon=%p, running=%p, reason=%p", mon, running, reason);
|
||||
|
||||
if (!mon || !running) {
|
||||
if (!mon) {
|
||||
virReportError(VIR_ERR_INVALID_ARG, "%s",
|
||||
_("both monitor and running must not be NULL"));
|
||||
_("monitor must not be NULL"));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -335,7 +335,8 @@ int qemuMonitorVMStatusToPausedReason(const char *status);
|
||||
|
||||
int qemuMonitorGetStatus(qemuMonitorPtr mon,
|
||||
bool *running,
|
||||
virDomainPausedReason *reason);
|
||||
virDomainPausedReason *reason)
|
||||
ATTRIBUTE_NONNULL(2);
|
||||
|
||||
int qemuMonitorSystemReset(qemuMonitorPtr mon);
|
||||
int qemuMonitorSystemPowerdown(qemuMonitorPtr mon);
|
||||
|
Loading…
Reference in New Issue
Block a user