* grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
for context.
This commit is contained in:
parent
8cb17de77b
commit
e837738991
2 changed files with 6 additions and 1 deletions
|
@ -381,7 +381,7 @@ static enum xz_ret hash_validate(struct xz_dec *s, struct xz_buf *b,
|
|||
{
|
||||
#ifndef GRUB_EMBED_DECOMPRESSOR
|
||||
const gcry_md_spec_t *hash = crc32 ? s->crc32 : s->hash;
|
||||
grub_uint64_t *hash_context = crc32 ? s->crc32_context
|
||||
void *hash_context = crc32 ? s->crc32_context
|
||||
: s->hash_context;
|
||||
if(!s->have_hash_value && hash
|
||||
&& sizeof (s->hash_value) >= hash->mdlen)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue