qemu-e2k/nbd
John Snow 667ad26ff8 nbd: avoid unaligned uint64_t store
cpu_to_be64w can't be used to make unaligned stores, but stq_be_p can.
Also, the st?_be_p takes a void* so it is more clearly suited to the
case where you're writing into a byte buffer.

Use the st?_be_p family of functions everywhere in nbd/server.c.

Signed-off-by: John Snow <jsnow@redhat.com>
[Changed to use st?_be_p everywhere. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2016-02-09 15:45:26 +01:00
..
client.c all: Clean up includes 2016-02-04 17:41:30 +00:00
common.c all: Clean up includes 2016-02-04 17:41:30 +00:00
Makefile.objs nbd: Split nbd.c 2016-01-15 18:58:02 +01:00
nbd-internal.h nbd: Split nbd.c 2016-01-15 18:58:02 +01:00
server.c nbd: avoid unaligned uint64_t store 2016-02-09 15:45:26 +01:00