mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
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…
x
Reference in New Issue
Block a user