]> xenbits.xensource.com Git - libvirt.git/commit
build: fix 32-bit test failure
authorEric Blake <eblake@redhat.com>
Thu, 21 Apr 2011 14:23:59 +0000 (08:23 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 21 Apr 2011 14:23:59 +0000 (08:23 -0600)
commit1fc288e1e25eeb94b705cedbff7cd04b45cca79d
treec4b94ccf440d6b187252a6e6383892f569d4dc8d
parent068add8ea95750f9551a4de5e8d8c698612a14ab
build: fix 32-bit test failure

ARRAY_CARDINALITY is typed as size_t, not long; this matters on 32-bit
platforms:

hashtest.c: In function 'testHashRemoveForEach':
hashtest.c:114: error: format '%lu' expects type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat]

* tests/hashtest.c (testHashRemoveForEach): Use correct format.
tests/hashtest.c