On 29/06/2017 21:36, Eric Blake wrote: >> + memcpy(&nbd_magic, buf, 8); >> + nbd_magic = be64_to_cpu(nbd_magic); > Do we really need to copy the memory around twice? Can't we just use: > magic = ldq_be_p(buf); > and call it good?
Yes. Paolo
signature.asc
Description: OpenPGP digital signature