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

View File

@@ -31,7 +31,7 @@ static int my_iscsi_queue_pdu(struct iscsi_context *iscsi, struct iscsi_pdu *pdu
switch (change_cmdsn) {
case 1:
/* change the cmdsn so it becomes too big */
*(uint32_t *)&pdu->outdata.data[24] = htonl(iscsi->expcmdsn + 1);
scsi_set_uint32(&pdu->outdata.data[24], iscsi->expcmdsn + 1);
/* fudge the cmdsn value back to where it should be if this
* pdu is ignored.
*/