nbd: Don't use cpu_to_*w() functions
commitf6be6720847f370000312808e6fed5d4e9730934
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 10 Jun 2016 16:15:42 +0000 (10 17:15 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 16 Jun 2016 16:39:04 +0000 (16 18:39 +0200)
tree71bf4c2f74e59ff88914e98b605a5f4252b3ed37
parent773dce3c7286a66c37f7b07994177faf7046bfa8
nbd: Don't use cpu_to_*w() functions

The cpu_to_*w() functions just compose a pointer dereference
with a byteswap. Instead use st*_p(), which handles potential
pointer misalignment and avoids the need to cast the pointer.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <1465575342-12146-1-git-send-email-peter.maydell@linaro.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
nbd/client.c