mirror of https://gitee.com/openkylin/libvirt.git
Fix cgroup compile warnings
* src/cgroup.c: Fix cast to uint64 from unsigned long long
This commit is contained in:
parent
a2e2717411
commit
1112330e46
|
@ -880,19 +880,19 @@ int virCgroupSetCpuShares(virCgroupPtr group, unsigned long long shares)
|
|||
{
|
||||
return virCgroupSetValueU64(group,
|
||||
VIR_CGROUP_CONTROLLER_CPU,
|
||||
"cpu.shares", shares);
|
||||
"cpu.shares", (uint64_t)shares);
|
||||
}
|
||||
|
||||
int virCgroupGetCpuShares(virCgroupPtr group, unsigned long long *shares)
|
||||
{
|
||||
return virCgroupGetValueU64(group,
|
||||
VIR_CGROUP_CONTROLLER_CPU,
|
||||
"cpu.shares", shares);
|
||||
"cpu.shares", (uint64_t *)shares);
|
||||
}
|
||||
|
||||
int virCgroupGetCpuacctUsage(virCgroupPtr group, unsigned long long *usage)
|
||||
{
|
||||
return virCgroupGetValueU64(group,
|
||||
VIR_CGROUP_CONTROLLER_CPUACCT,
|
||||
"cpuacct.usage", usage);
|
||||
"cpuacct.usage", (uint64_t *)usage);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue