* grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
* grub-core/loader/i386/bsd.c: Likewise.
This commit is contained in:
parent
9fb0fd4f35
commit
02adbb932d
3 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
|
||||||
|
* grub-core/loader/i386/bsd.c: Likewise.
|
||||||
|
|
||||||
2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
|
2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
|
* grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
|
||||||
|
|
|
@ -166,7 +166,7 @@ read_block_data (struct grub_lzopio *lzopio)
|
||||||
|
|
||||||
if (lzopio->ccheck_fun)
|
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->init (context);
|
||||||
lzopio->ccheck_fun->write (context, lzopio->block.cdata,
|
lzopio->ccheck_fun->write (context, lzopio->block.cdata,
|
||||||
|
@ -212,7 +212,7 @@ uncompress_block (struct grub_lzopio *lzopio)
|
||||||
|
|
||||||
if (lzopio->ucheck_fun)
|
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->init (context);
|
||||||
lzopio->ucheck_fun->write (context, lzopio->block.udata,
|
lzopio->ucheck_fun->write (context, lzopio->block.udata,
|
||||||
|
|
|
@ -1045,7 +1045,7 @@ grub_netbsd_add_boot_disk_and_wedge (void)
|
||||||
struct grub_partition_bsd_disk_label label;
|
struct grub_partition_bsd_disk_label label;
|
||||||
} buf;
|
} buf;
|
||||||
grub_uint8_t *hash;
|
grub_uint8_t *hash;
|
||||||
grub_uint64_t ctx[(GRUB_MD_MD5->contextsize + 7) / 8];
|
GRUB_PROPERLY_ALIGNED_ARRAY (ctx, GRUB_MD_MD5->contextsize);
|
||||||
|
|
||||||
dev = grub_device_open (0);
|
dev = grub_device_open (0);
|
||||||
if (! (dev && dev->disk && dev->disk->partition))
|
if (! (dev && dev->disk && dev->disk->partition))
|
||||||
|
|
Loading…
Reference in a new issue