]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: fix build on old 32-bit platforms
authorEric Blake <eblake@redhat.com>
Wed, 15 Apr 2015 18:50:23 +0000 (12:50 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 15 Apr 2015 18:50:23 +0000 (12:50 -0600)
commit9289c85841659ba00bdc747748eb54ca8991d3a0
tree1dcbbfbdc53b246f3c5469c742e5fef7c1aa700d
parentaeb5262e4397528d582682471cb8075141189465
tests: fix build on old 32-bit platforms

gcc 4.1.2 (hello RHEL 5) on 32-bit platforms complains:

vircgrouptest.c: In function 'testCgroupGetPercpuStats':
vircgrouptest.c:627: warning: integer constant is too large for 'long' type
vircgrouptest.c:628: warning: this decimal constant is unsigned only in ISO C90
vircgrouptest.c:634: warning: integer constant is too large for 'long' type
vircgrouptest.c:635: warning: this decimal constant is unsigned only in ISO C90
vircgrouptest.c:636: warning: this decimal constant is unsigned only in ISO C90
vircgrouptest.c:644: warning: integer constant is too large for 'long' type

* tests/vircgrouptest.c (testCgroupGetPercpuStats): Use ULL suffix.

Signed-off-by: Eric Blake <eblake@redhat.com>
tests/vircgrouptest.c