]> Git Repo - qemu.git/commit - nbd/client.c
nbd: Don't use cpu_to_*w() functions
authorPeter Maydell <[email protected]>
Fri, 10 Jun 2016 16:15:42 +0000 (17:15 +0100)
committerPaolo Bonzini <[email protected]>
Thu, 16 Jun 2016 16:39:04 +0000 (18:39 +0200)
commitf6be6720847f370000312808e6fed5d4e9730934
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 <[email protected]>
Message-Id: <1465575342[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
nbd/client.c
This page took 0.022591 seconds and 4 git commands to generate.