Fix alignment issues and build on SPARC
authorpeter green <plugwash@p10link.net>
Tue, 8 May 2012 07:32:53 +0000 (09:32 +0200)
committerWouter Verhelst <w@uter.be>
Tue, 8 May 2012 07:32:53 +0000 (09:32 +0200)
commit899b2e697e5bc7e975e872a63c65e6ce8effd4b1
treec09257d3deed12a5aefa98875c414f4630de1bcd
parent56c9c26688af2debe137d8324eb443783a9a622f
Fix alignment issues and build on SPARC

nbd-tester-client, in the "integrity" test, was making some assumptions
that were incorrect on architectures such as SPARC which care about
alignment. This patch fixes those, by making sure we always access
64-bit values through a uint64_t, rather than through a char.
nbd-tester-client.c