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> 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 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
match struct grub_fs. match struct grub_fs.

View file

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