2009-04-17 Pavel Roskin <proski@gnu.org>

* loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
	return without a value.  Fix inconsistent indentation.
This commit is contained in:
proski 2009-04-17 16:35:26 +00:00
parent e0ff912638
commit 1bc09c352c
2 changed files with 14 additions and 11 deletions

View File

@ -1,5 +1,8 @@
2009-04-17 Pavel Roskin <proski@gnu.org>
* loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
return without a value. Fix inconsistent indentation.
* fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
match struct grub_fs.

View File

@ -131,36 +131,36 @@ grub_cmd_multiboot_loader (grub_command_t cmd __attribute__ ((unused)),
goto fail;
}
/* close file before calling functions */
if (file)
grub_file_close (file);
/* close file before calling functions */
if (file)
grub_file_close (file);
/* Launch multi boot with header */
/* Launch multi boot with header */
/* XXX Find a better way to identify this.
This is for i386-pc */
/* XXX Find a better way to identify this.
This is for i386-pc */
#if defined(GRUB_MACHINE_PCBIOS) || defined(GRUB_MACHINE_LINUXBIOS)
if (header_multi_ver_found == 1)
{
grub_dprintf ("multiboot_loader",
"Launching multiboot 1 grub_multiboot() function\n");
grub_multiboot (argc, argv);
"Launching multiboot 1 grub_multiboot() function\n");
grub_multiboot (argc, argv);
module_version_status = 1;
}
#endif
if (header_multi_ver_found == 0 || header_multi_ver_found == 2)
{
grub_dprintf ("multiboot_loader",
"Launching multiboot 2 grub_multiboot2() function\n");
"Launching multiboot 2 grub_multiboot2() function\n");
grub_multiboot2 (argc, argv);
module_version_status = 2;
}
return;
return grub_errno;
fail:
if (file)
grub_file_close (file);
grub_file_close (file);
grub_dl_unref (my_mod);