]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
remote: Fix erroneous usage of constant
authorJohn Ferlan <jferlan@redhat.com>
Tue, 4 Oct 2016 11:05:20 +0000 (07:05 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 4 Oct 2016 18:35:17 +0000 (14:35 -0400)
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>
src/remote/remote_driver.c

index 3b8b796f0cce85f5fbf8d058cf68b36f6caf8ea4..f6c6940095acbc445362b8b1bf88554033206f78 100644 (file)
@@ -1762,7 +1762,7 @@ remoteDomainBlockStatsFlags(virDomainPtr domain,
     /* Deserialize the result. */
     if (virTypedParamsDeserialize((virTypedParameterRemotePtr) ret.params.params_val,
                                   ret.params.params_len,
-                                  REMOTE_DOMAIN_MEMORY_PARAMETERS_MAX,
+                                  REMOTE_DOMAIN_BLOCK_STATS_PARAMETERS_MAX,
                                   &params,
                                   nparams) < 0)
         goto cleanup;
@@ -2869,7 +2869,7 @@ static int remoteDomainGetBlockIoTune(virDomainPtr domain,
 
     if (virTypedParamsDeserialize((virTypedParameterRemotePtr) ret.params.params_val,
                                   ret.params.params_len,
-                                  REMOTE_DOMAIN_MEMORY_PARAMETERS_MAX,
+                                  REMOTE_DOMAIN_BLOCK_IO_TUNE_PARAMETERS_MAX,
                                   &params,
                                   nparams) < 0)
         goto cleanup;