From 9679053902c8ac18a10b15cacf1b964c89c3f920 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Wed, 22 Feb 2012 05:12:18 +0100 Subject: [PATCH] * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier. --- ChangeLog | 4 ++++ grub-core/kern/disk.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index cb248eba5..c839e398e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2012-02-22 Vladimir Serbinenko + + * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier. + 2012-02-22 Vladimir Serbinenko * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init. diff --git a/grub-core/kern/disk.c b/grub-core/kern/disk.c index 7207cb9d9..a3c278ac8 100644 --- a/grub-core/kern/disk.c +++ b/grub-core/kern/disk.c @@ -660,7 +660,7 @@ grub_disk_write (grub_disk_t disk, grub_disk_addr_t sector, goto finish; sector += (1 << (disk->log_sector_size - GRUB_DISK_SECTOR_BITS)); - buf = (char *) buf + len; + buf = (const char *) buf + len; size -= len; real_offset = 0; } @@ -678,7 +678,7 @@ grub_disk_write (grub_disk_t disk, grub_disk_addr_t sector, while (n--) grub_disk_cache_invalidate (disk->dev->id, disk->id, sector++); - buf = (char *) buf + len; + buf = (const char *) buf + len; size -= len; } }