From 1112330e466554ec89706c60beeeaabb621c7d98 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Fri, 24 Jul 2009 16:11:00 +0100 Subject: [PATCH] Fix cgroup compile warnings * src/cgroup.c: Fix cast to uint64 from unsigned long long --- src/cgroup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cgroup.c b/src/cgroup.c index e6785178a1..111601d9b7 100644 --- a/src/cgroup.c +++ b/src/cgroup.c @@ -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); }