diff options
author | Markus Armbruster <armbru@redhat.com> | 2020-12-17 17:19:58 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2020-12-18 12:43:16 +0100 |
commit | 7550379dedc4e0791ffadc3b18ac202fce51e21c (patch) | |
tree | 5b6a2e028b4f73ca843af736042f1ff994937bf9 /block | |
parent | a18dc3a14d8455c0b7673f9c3b6cdc4f10a7dade (diff) | |
download | qemu-7550379dedc4e0791ffadc3b18ac202fce51e21c.zip qemu-7550379dedc4e0791ffadc3b18ac202fce51e21c.tar.gz qemu-7550379dedc4e0791ffadc3b18ac202fce51e21c.tar.bz2 |
block/vpc: Make vpc_checksum() take void *
Some of the next commits will checksum structs. Change vpc_checksum()
to take void * instead of uint8_t, to save us pointless casts to
uint8_t *.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20201217162003.1102738-5-armbru@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/vpc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/block/vpc.c b/block/vpc.c index 3418664..5af9837 100644 --- a/block/vpc.c +++ b/block/vpc.c @@ -172,8 +172,9 @@ static QemuOptsList vpc_runtime_opts = { static QemuOptsList vpc_create_opts; -static uint32_t vpc_checksum(uint8_t *buf, size_t size) +static uint32_t vpc_checksum(void *p, size_t size) { + uint8_t *buf = p; uint32_t res = 0; int i; |