2008-04-02 Pavel Roskin <proski@gnu.org>

* disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
	* fs/cpio.c (grub_cpio_read): Likewise.
This commit is contained in:
proski 2008-04-02 06:10:44 +00:00
parent 4b6e1995be
commit ba7328dcba
3 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2008-04-02 Pavel Roskin <proski@gnu.org>
* disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
* fs/cpio.c (grub_cpio_read): Likewise.
2008-04-01 Pavel Roskin <proski@gnu.org> 2008-04-01 Pavel Roskin <proski@gnu.org>
* disk/ata.c (grub_ata_open): Don't lose precision in disk->id. * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.

View file

@ -73,7 +73,7 @@ grub_raid_memberlist (grub_disk_t disk)
{ {
struct grub_raid_array *array = disk->data; struct grub_raid_array *array = disk->data;
grub_disk_memberlist_t list = NULL, tmp; grub_disk_memberlist_t list = NULL, tmp;
int i; unsigned int i;
for (i = 0; i < array->total_devs; i++) for (i = 0; i < array->total_devs; i++)
{ {

View file

@ -315,7 +315,7 @@ grub_cpio_read (grub_file_t file, char *buf, grub_size_t len)
data = file->data; data = file->data;
return (grub_disk_read (data->disk, 0, data->dofs + file->offset, return (grub_disk_read (data->disk, 0, data->dofs + file->offset,
len, buf)) ? -1 : len; len, buf)) ? -1 : (grub_ssize_t) len;
} }
static grub_err_t static grub_err_t