* grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-02-22 05:12:18 +01:00
parent 1ba7e295fb
commit 9679053902
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.

View file

@ -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;
}
}