|
|
a5bd9f6 |
From 17a6553c2d4bbe04e9063dac50637262af4aeac1 Mon Sep 17 00:00:00 2001
|
|
|
a5bd9f6 |
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
|
|
|
a5bd9f6 |
Date: Sun, 10 Mar 2013 19:27:50 +0100
|
|
|
a5bd9f6 |
Subject: [PATCH 205/364] * grub-core/loader/i386/pc/plan9.c
|
|
|
a5bd9f6 |
(fill_disk): Fix types to use intended shifts rather than division.
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
---
|
|
|
a5bd9f6 |
ChangeLog | 5 +++++
|
|
|
a5bd9f6 |
grub-core/loader/i386/pc/plan9.c | 4 ++--
|
|
|
a5bd9f6 |
2 files changed, 7 insertions(+), 2 deletions(-)
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
diff --git a/ChangeLog b/ChangeLog
|
|
|
a5bd9f6 |
index 8814c22..334f81d 100644
|
|
|
a5bd9f6 |
--- a/ChangeLog
|
|
|
a5bd9f6 |
+++ b/ChangeLog
|
|
|
a5bd9f6 |
@@ -1,5 +1,10 @@
|
|
|
a5bd9f6 |
2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
+ * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
|
|
|
a5bd9f6 |
+ intended shifts rather than division.
|
|
|
a5bd9f6 |
+
|
|
|
a5bd9f6 |
+2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
a5bd9f6 |
+
|
|
|
a5bd9f6 |
* include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
|
|
|
a5bd9f6 |
computation for some years before epoch. Avode confusing division
|
|
|
a5bd9f6 |
while on it.
|
|
|
a5bd9f6 |
diff --git a/grub-core/loader/i386/pc/plan9.c b/grub-core/loader/i386/pc/plan9.c
|
|
|
a5bd9f6 |
index 7dc12a8..1c7b381 100644
|
|
|
a5bd9f6 |
--- a/grub-core/loader/i386/pc/plan9.c
|
|
|
a5bd9f6 |
+++ b/grub-core/loader/i386/pc/plan9.c
|
|
|
a5bd9f6 |
@@ -292,7 +292,7 @@ fill_disk (const char *name, void *data)
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
case GRUB_DISK_DEVICE_ATA_ID:
|
|
|
a5bd9f6 |
{
|
|
|
a5bd9f6 |
- int unit;
|
|
|
a5bd9f6 |
+ unsigned unit;
|
|
|
a5bd9f6 |
if (grub_strlen (dev->disk->name) < sizeof ("ata0") - 1)
|
|
|
a5bd9f6 |
unit = 0;
|
|
|
a5bd9f6 |
else
|
|
|
a5bd9f6 |
@@ -304,7 +304,7 @@ fill_disk (const char *name, void *data)
|
|
|
a5bd9f6 |
if (((dev->disk->id >> GRUB_SCSI_ID_SUBSYSTEM_SHIFT) & 0xff)
|
|
|
a5bd9f6 |
== GRUB_SCSI_SUBSYSTEM_PATA)
|
|
|
a5bd9f6 |
{
|
|
|
a5bd9f6 |
- int unit;
|
|
|
a5bd9f6 |
+ unsigned unit;
|
|
|
a5bd9f6 |
if (grub_strlen (dev->disk->name) < sizeof ("ata0") - 1)
|
|
|
a5bd9f6 |
unit = 0;
|
|
|
a5bd9f6 |
else
|
|
|
a5bd9f6 |
--
|
|
|
a5bd9f6 |
1.8.1.4
|
|
|
a5bd9f6 |
|