From: Daniel P. Berrange Date: Fri, 24 Jul 2009 15:11:00 +0000 (+0100) Subject: Fix cgroup compile warnings X-Git-Tag: v0.7.0~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1112330e466554ec89706c60beeeaabb621c7d98;p=thirdparty%2Flibvirt.git Fix cgroup compile warnings * src/cgroup.c: Fix cast to uint64 from unsigned long long --- 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); }