[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[1960] 2009-01-27 Vesa J?\195?\164?\195?\164skel?\195?\164inen <address@
From: |
Vesa Jääskeläinen |
Subject: |
[1960] 2009-01-27 Vesa J?\195?\164?\195?\164skel?\195?\164inen <address@hidden .fi> |
Date: |
Tue, 27 Jan 2009 18:26:09 +0000 |
Revision: 1960
http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=1960
Author: chaac
Date: 2009-01-27 18:26:09 +0000 (Tue, 27 Jan 2009)
Log Message:
-----------
2009-01-27 Vesa J?\195?\164?\195?\164skel?\195?\164inen <address@hidden>
* disk/scsi.c (grub_scsi_read): Fix sign problem.
* term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
* util/grub-mkfont.c (usage): Fix typo.
* util/elf/grub-mkimage.c (load_modules): Fix warning.
Modified Paths:
--------------
trunk/grub2/ChangeLog
trunk/grub2/disk/scsi.c
trunk/grub2/term/i386/pc/vga_text.c
trunk/grub2/util/elf/grub-mkimage.c
trunk/grub2/util/grub-mkfont.c
Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog 2009-01-26 04:35:57 UTC (rev 1959)
+++ trunk/grub2/ChangeLog 2009-01-27 18:26:09 UTC (rev 1960)
@@ -1,3 +1,13 @@
+2009-01-27 Vesa Jääskeläinen <address@hidden>
+
+ * disk/scsi.c (grub_scsi_read): Fix sign problem.
+
+ * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
+
+ * util/grub-mkfont.c (usage): Fix typo.
+
+ * util/elf/grub-mkimage.c (load_modules): Fix warning.
+
2009-01-26 Daniel Mierswa <address@hidden>
* fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
Modified: trunk/grub2/disk/scsi.c
===================================================================
--- trunk/grub2/disk/scsi.c 2009-01-26 04:35:57 UTC (rev 1959)
+++ trunk/grub2/disk/scsi.c 2009-01-27 18:26:09 UTC (rev 1960)
@@ -41,7 +41,7 @@
grub_scsi_dev_unregister (grub_scsi_dev_t dev)
{
grub_scsi_dev_t *p, q;
-
+
for (p = &grub_scsi_dev_list, q = *p; q; p = &(q->next), q = q->next)
if (q == dev)
{
@@ -52,7 +52,7 @@
/* Determine the the device is removable and the type of the device
- SCSI. */
+ SCSI. */
static grub_err_t
grub_scsi_inquiry (grub_scsi_t scsi)
{
@@ -231,7 +231,7 @@
grub_err_t err;
int len;
int lun;
-
+
scsi = grub_malloc (sizeof (*scsi));
if (! scsi)
return grub_errno;
@@ -269,7 +269,7 @@
grub_dprintf ("scsi", "inquiry: devtype=0x%02x removable=%d\n",
scsi->devtype, scsi->removable);
-
+
/* Try to be conservative about the device types
supported. */
if (scsi->devtype != grub_scsi_devtype_direct
@@ -332,7 +332,7 @@
return grub_error (GRUB_ERR_NOT_IMPLEMENTED_YET,
"Unsupported SCSI block size");
- grub_int32_t sector_mod = 0;
+ grub_uint32_t sector_mod = 0;
sector = grub_divmod64 (sector, spb, §or_mod);
if (! (sector_mod == 0 && size % spb == 0))
Modified: trunk/grub2/term/i386/pc/vga_text.c
===================================================================
--- trunk/grub2/term/i386/pc/vga_text.c 2009-01-26 04:35:57 UTC (rev 1959)
+++ trunk/grub2/term/i386/pc/vga_text.c 2009-01-27 18:26:09 UTC (rev 1960)
@@ -143,7 +143,7 @@
}
static grub_err_t
-grub_vga_text_init_fini ()
+grub_vga_text_init_fini (void)
{
grub_vga_text_cls ();
return 0;
Modified: trunk/grub2/util/elf/grub-mkimage.c
===================================================================
--- trunk/grub2/util/elf/grub-mkimage.c 2009-01-26 04:35:57 UTC (rev 1959)
+++ trunk/grub2/util/elf/grub-mkimage.c 2009-01-27 18:26:09 UTC (rev 1960)
@@ -103,7 +103,9 @@
struct grub_util_path_list *path_list;
struct grub_util_path_list *p;
struct grub_module_info *modinfo;
- size_t offset, total_module_size, memdisk_size;
+ size_t offset;
+ size_t total_module_size;
+ size_t memdisk_size = 0;
path_list = grub_util_resolve_dependencies (dir, "moddep.lst", mods);
@@ -197,7 +199,7 @@
grub_util_error ("cannot open %s", kernel_path);
grub_util_read_at (&ehdr, sizeof (ehdr), 0, in);
-
+
offset = ALIGN_UP (sizeof (ehdr), GRUB_TARGET_SIZEOF_LONG);
ehdr.e_phoff = grub_host_to_target32 (offset);
@@ -240,7 +242,7 @@
/* Read segment data and write it to new file. */
segment_img = xmalloc (grub_target_to_host32 (phdr->p_filesz));
-
+
grub_util_read_at (segment_img, grub_target_to_host32 (phdr->p_filesz),
grub_target_to_host32 (phdr->p_offset), in);
@@ -379,11 +381,11 @@
if (memdisk)
free (memdisk);
memdisk = xstrdup (optarg);
-
+
if (prefix)
free (prefix);
prefix = xstrdup ("(memdisk)/boot/grub");
-
+
break;
case 'h':
usage (0);
Modified: trunk/grub2/util/grub-mkfont.c
===================================================================
--- trunk/grub2/util/grub-mkfont.c 2009-01-26 04:35:57 UTC (rev 1959)
+++ trunk/grub2/util/grub-mkfont.c 2009-01-27 18:26:09 UTC (rev 1960)
@@ -102,7 +102,7 @@
-s, --size=N set font size\n\
-d, --desc=N set font descent\n\
-b, --bold convert to bold font\n\
- -a, --force-autohine force autohint\n\
+ -a, --force-autohint force autohint\n\
--no-hinting disable hinting\n\
--no-bitmap ignore bitmap strikes when loading\n\
-h, --help display this message and exit\n\
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [1960] 2009-01-27 Vesa J?\195?\164?\195?\164skel?\195?\164inen <address@hidden .fi>,
Vesa Jääskeläinen <=