]> xenbits.xensource.com Git - libvirt.git/commit
tests: avoid too-large constants
authorEric Blake <eblake@redhat.com>
Fri, 9 Aug 2013 13:42:06 +0000 (07:42 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 9 Aug 2013 13:46:18 +0000 (07:46 -0600)
commitf1088c817731960e826f65b2ad2f557eaa3655e5
tree7ef851bb4966f43b20d8c36afe0c1391fdeca9ee
parentac692e3af231651304a93d63cb54049d9e3d50f8
tests: avoid too-large constants

Compiling with gcc 4.1.2 (RHEL 5) on a 32-bit platform complains:

virdbustest.c: In function 'testMessageSimple':
virdbustest.c:61: warning: integer constant is too large for 'long' type
virdbustest.c:62: warning: integer constant is too large for 'long' type
virdbustest.c: In function 'testMessageArray':
virdbustest.c:183: warning: this decimal constant is unsigned only in ISO C90
virdbustest.c: In function 'testMessageStruct':
virdbustest.c:239: warning: integer constant is too large for 'long' type
virdbustest.c:240: warning: integer constant is too large for 'long' type

* tests/virdbustest.c (testMessageSiple, testMessageArray)
(testMessageStruct): Don't violate C89 constant constraints.

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