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:
proski 2008-04-02 04:25:41 +00:00
parent 828a27686e
commit 4b6e1995be
5 changed files with 10 additions and 4 deletions

View file

@ -41,7 +41,7 @@ grub_host_open (const char *name, grub_disk_t disk)
return grub_error (GRUB_ERR_UNKNOWN_DEVICE, "not a host disk");
disk->total_sectors = 0;
disk->id = (int) "host";
disk->id = (unsigned long) "host";
disk->has_partitions = 0;
disk->data = 0;