* grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *

for context.
This commit is contained in:
Vladimir 'phcoder' Serbinenko committed 2012-02-29 14:56:51 +01:00
1 parent 8cb17de77b
commit e837738991
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -1,3 +1,8 @@
2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
for context.
2012-02-29 Vladimir Serbinenko <phcoder@gmail.com> 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/disk/ldm.c (make_vg): Init part.name. * grub-core/disk/ldm.c (make_vg): Init part.name.
+1 -1
View File
@@ -381,7 +381,7 @@ static enum xz_ret hash_validate(struct xz_dec *s, struct xz_buf *b,
{ {
#ifndef GRUB_EMBED_DECOMPRESSOR #ifndef GRUB_EMBED_DECOMPRESSOR
const gcry_md_spec_t *hash = crc32 ? s->crc32 : s->hash; 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; : s->hash_context;
if(!s->have_hash_value && hash if(!s->have_hash_value && hash
&& sizeof (s->hash_value) >= hash->mdlen) && sizeof (s->hash_value) >= hash->mdlen)