2008-08-28 Robert Millan <rmh@aybabtu.com>

* util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
This commit is contained in:
robertmh 2008-08-28 19:08:21 +00:00
parent 678e849cd3
commit 1c282483bf
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2008-08-28 Robert Millan <rmh@aybabtu.com>
* util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
2008-08-28 Robert Millan <rmh@aybabtu.com> 2008-08-28 Robert Millan <rmh@aybabtu.com>
Change find_grub_drive() syntax so it doesn't prevent it from Change find_grub_drive() syntax so it doesn't prevent it from

View file

@ -127,6 +127,8 @@ find_grub_drive (const char *name)
static int static int
find_free_slot () find_free_slot ()
{ {
unsigned int i;
for (i = 0; i < sizeof (map) / sizeof (map[0]); i++) for (i = 0; i < sizeof (map) / sizeof (map[0]); i++)
if (! map[i].drive) if (! map[i].drive)
return i; return i;