mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-23 15:49:23 +00:00
* grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
intended shifts rather than division.
This commit is contained in:
1 parent
84cfe81b1d
commit
a9c94590dd
2 files changed
+7
-2
No files matched your search
@@ -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>
|
2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
|
* include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
|
||||||
|
|||||||
@@ -292,7 +292,7 @@ fill_disk (const char *name, void *data)
|
|||||||
|
|
||||||
case GRUB_DISK_DEVICE_ATA_ID:
|
case GRUB_DISK_DEVICE_ATA_ID:
|
||||||
{
|
{
|
||||||
int unit;
|
unsigned unit;
|
||||||
if (grub_strlen (dev->disk->name) < sizeof ("ata0") - 1)
|
if (grub_strlen (dev->disk->name) < sizeof ("ata0") - 1)
|
||||||
unit = 0;
|
unit = 0;
|
||||||
else
|
else
|
||||||
@@ -304,7 +304,7 @@ fill_disk (const char *name, void *data)
|
|||||||
if (((dev->disk->id >> GRUB_SCSI_ID_SUBSYSTEM_SHIFT) & 0xff)
|
if (((dev->disk->id >> GRUB_SCSI_ID_SUBSYSTEM_SHIFT) & 0xff)
|
||||||
== GRUB_SCSI_SUBSYSTEM_PATA)
|
== GRUB_SCSI_SUBSYSTEM_PATA)
|
||||||
{
|
{
|
||||||
int unit;
|
unsigned unit;
|
||||||
if (grub_strlen (dev->disk->name) < sizeof ("ata0") - 1)
|
if (grub_strlen (dev->disk->name) < sizeof ("ata0") - 1)
|
||||||
unit = 0;
|
unit = 0;
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in new issue
Block a user