* grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use

intended shifts rather than division.
This commit is contained in:
Vladimir 'phcoder' Serbinenko committed 2013-03-10 19:27:50 +01:00
1 parent 84cfe81b1d
commit a9c94590dd
2 files changed
+7 -2

No files matched your search

+5
View File
@@ -1,3 +1,8 @@
2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
intended shifts rather than division.
2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
* include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
+2 -2
View File
@@ -292,7 +292,7 @@ fill_disk (const char *name, void *data)
case GRUB_DISK_DEVICE_ATA_ID:
{
int unit;
unsigned unit;
if (grub_strlen (dev->disk->name) < sizeof ("ata0") - 1)
unit = 0;
else
@@ -304,7 +304,7 @@ fill_disk (const char *name, void *data)
if (((dev->disk->id >> GRUB_SCSI_ID_SUBSYSTEM_SHIFT) & 0xff)
== GRUB_SCSI_SUBSYSTEM_PATA)
{
int unit;
unsigned unit;
if (grub_strlen (dev->disk->name) < sizeof ("ata0") - 1)
unit = 0;
else