Skip to content

Commit

Permalink
block/vpc: Make vpc_checksum() take void *
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Markus Armbruster authored and kevmw committed Dec 18, 2020
1 parent a18dc3a commit 7550379
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion block/vpc.c
Expand Up @@ -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;

Expand Down

0 comments on commit 7550379

Please sign in to comment.