mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
remote: Fix erroneous usage of constant
The REMOTE_DOMAIN_MEMORY_PARAMETERS_MAX was erroneously used in the remoteDomainBlockStatsFlags and remoteDomainGetBlockIoTune calls. Change the constant to be the right one. Fortunately, all 3 are defined as 16. Signed-off-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
b045cf799c
commit
bb41e19fea
@ -1762,7 +1762,7 @@ remoteDomainBlockStatsFlags(virDomainPtr domain,
|
|||||||
/* Deserialize the result. */
|
/* Deserialize the result. */
|
||||||
if (virTypedParamsDeserialize((virTypedParameterRemotePtr) ret.params.params_val,
|
if (virTypedParamsDeserialize((virTypedParameterRemotePtr) ret.params.params_val,
|
||||||
ret.params.params_len,
|
ret.params.params_len,
|
||||||
REMOTE_DOMAIN_MEMORY_PARAMETERS_MAX,
|
REMOTE_DOMAIN_BLOCK_STATS_PARAMETERS_MAX,
|
||||||
¶ms,
|
¶ms,
|
||||||
nparams) < 0)
|
nparams) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
@ -2869,7 +2869,7 @@ static int remoteDomainGetBlockIoTune(virDomainPtr domain,
|
|||||||
|
|
||||||
if (virTypedParamsDeserialize((virTypedParameterRemotePtr) ret.params.params_val,
|
if (virTypedParamsDeserialize((virTypedParameterRemotePtr) ret.params.params_val,
|
||||||
ret.params.params_len,
|
ret.params.params_len,
|
||||||
REMOTE_DOMAIN_MEMORY_PARAMETERS_MAX,
|
REMOTE_DOMAIN_BLOCK_IO_TUNE_PARAMETERS_MAX,
|
||||||
¶ms,
|
¶ms,
|
||||||
nparams) < 0)
|
nparams) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
Loading…
Reference in New Issue
Block a user