Later on this will also be used to track size of the vcpu data array.
Use size_t so that we can utilize the memory allocation helpers.
---
src/conf/domain_conf.c | 2 +-
src/conf/domain_conf.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 890e1c7..2bc0f1c 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -1463,7 +1463,7 @@ virDomainDefSetVcpus(virDomainDefPtr def,
{
if (vcpus > def->maxvcpus) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
- _("maxvcpus must not be less than current vcpus (%u <
%u)"),
+ _("maxvcpus must not be less than current vcpus (%u <
%zu)"),
vcpus, def->maxvcpus);
return -1;
}
diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
index d7630c4..b681bd2 100644
--- a/src/conf/domain_conf.h
+++ b/src/conf/domain_conf.h
@@ -2213,7 +2213,7 @@ struct _virDomainDef {
virDomainMemtune mem;
unsigned int vcpus;
- unsigned int maxvcpus;
+ size_t maxvcpus;
int placement_mode;
virBitmapPtr cpumask;
--
2.6.2