Fix cgroup compile warnings

* src/cgroup.c: Fix cast to uint64 from unsigned long long
This commit is contained in:
Daniel P. Berrange 2009-07-24 16:11:00 +01:00
parent a2e2717411
commit 1112330e46
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}