Skip to content
Snippets Groups Projects
user avatar
John Snow authored
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: default avatarJohn Snow <jsnow@redhat.com>
[Changed to use st?_be_p everywhere. - Paolo]
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
667ad26f
History
Name Last commit Last update
..