conf: Turn def->maxvcpus into size_t

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.
This commit is contained in:
Peter Krempa 2015-10-26 15:16:58 +01:00
parent 71c89ac9df
commit 80a59b4aae
2 changed files with 2 additions and 2 deletions

View File

@ -1317,7 +1317,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;
}

View File

@ -2219,7 +2219,7 @@ struct _virDomainDef {
virDomainMemtune mem;
unsigned int vcpus;
unsigned int maxvcpus;
size_t maxvcpus;
int placement_mode;
virBitmapPtr cpumask;