]> Git Repo - qemu.git/commit
uuid: Make qemu_uuid_bswap() take and return a QemuUUID
authorPeter Maydell <[email protected]>
Mon, 10 Dec 2018 11:26:49 +0000 (11:26 +0000)
committerKevin Wolf <[email protected]>
Fri, 1 Feb 2019 12:46:45 +0000 (13:46 +0100)
commit1324f06384870fdd6e5829dc4f775afe4de61867
tree5435a92d2e2ff5dc6ba24d2b37a1fd3f11d2c158
parentac928b8ee875f1ac256702a2b93c8eb828ddaff2
uuid: Make qemu_uuid_bswap() take and return a QemuUUID

Currently qemu_uuid_bswap() takes a pointer to the QemuUUID to
be byte-swapped. This means it can't be used when the UUID
to be swapped is in a packed member of a struct. It's also
out of line with the general bswap*() functions we provide
in bswap.h, which take the value to be swapped and return it.

Make qemu_uuid_bswap() take a QemuUUID and return the swapped version.

This fixes some clang warnings about taking the address of
a packed struct member in block/vdi.c.

Signed-off-by: Peter Maydell <[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Reviewed-by: Marc-AndrĂ© Lureau <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
block/vdi.c
hw/acpi/vmgenid.c
include/qemu/uuid.h
tests/vmgenid-test.c
util/uuid.c
This page took 0.02939 seconds and 4 git commands to generate.