use scsi_get/set_uint16/32/64 in tests

Fixes ARM problems too.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini
2013-08-02 16:24:34 +02:00
parent 73ce7f40c8
commit 3916872d27
12 changed files with 32 additions and 21 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ static int my_queue_immediate_data(struct iscsi_context *iscsi _U_, struct iscsi
pdu_was_valid = 0;
return 0;
}
if ( (*(uint32_t *)&pdu->outdata.data[4] & 0x00ffffff) != htonl(block_size)) {
if ( (scsi_get_uint32(&pdu->outdata.data[4]) & 0x00ffffff) != block_size) {
printf("SCSI-Command PDU did not have one block of immediate data.\n");
pdu_was_valid = 0;
return 0;