* grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.

* grub-core/loader/i386/bsd.c: Likewise.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-04-28 15:18:50 +02:00
parent 9fb0fd4f35
commit 02adbb932d
3 changed files with 8 additions and 3 deletions

View file

@ -166,7 +166,7 @@ read_block_data (struct grub_lzopio *lzopio)
if (lzopio->ccheck_fun)
{
grub_uint64_t context[(lzopio->ccheck_fun->contextsize + 7) / 8];
GRUB_PROPERLY_ALIGNED_ARRAY (context, lzopio->ccheck_fun->contextsize);
lzopio->ccheck_fun->init (context);
lzopio->ccheck_fun->write (context, lzopio->block.cdata,
@ -212,7 +212,7 @@ uncompress_block (struct grub_lzopio *lzopio)
if (lzopio->ucheck_fun)
{
grub_uint64_t context[(lzopio->ucheck_fun->contextsize + 7) / 8];
GRUB_PROPERLY_ALIGNED_ARRAY (context, lzopio->ucheck_fun->contextsize);
lzopio->ucheck_fun->init (context);
lzopio->ucheck_fun->write (context, lzopio->block.udata,