2008-04-01 Pavel Roskin <proski@gnu.org>
* disk/ata.c (grub_ata_open): Don't lose precision in disk->id. * disk/host.c (grub_host_open): Likewise. * disk/loopback.c (grub_loopback_open): Likewise. * disk/memdisk.c (grub_memdisk_open): Use a string pointer for disk->id as in disk/host.c, not a multi-character constant.
This commit is contained in:
parent
828a27686e
commit
4b6e1995be
5 changed files with 10 additions and 4 deletions
|
@ -41,7 +41,7 @@ grub_memdisk_open (const char *name, grub_disk_t disk)
|
|||
return grub_error (GRUB_ERR_UNKNOWN_DEVICE, "not a memdisk");
|
||||
|
||||
disk->total_sectors = memdisk_size / GRUB_DISK_SECTOR_SIZE;
|
||||
disk->id = (int) 'mdsk';
|
||||
disk->id = (unsigned long) "mdsk";
|
||||
disk->has_partitions = 0;
|
||||
|
||||
return GRUB_ERR_NONE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue