2004-08-24 Marco Gerards <metgerards@student.han.nl>
* commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional. (grub_boot_fini) [GRUB_UTIL]: Likewise. (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise. (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise. * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'. (grub_hfs_iterate_dir): Make the function static. Add prototypes for `node_found' and `it_dir'. (grub_hfs_dir): Add prototype for `dir_hook'. * fs/minix.c (grub_minix_get_file_block): Add prototype for `grub_get_indir'. Rename `indir' in two blocks to `indir16' and `indir32' to silence a gcc warning. * include/grub/fs.h (grub_hfs_init): New prototype. (grub_hfs_fini): Likewise.
This commit is contained in:
parent
97543f08fc
commit
94bc45af05
5 changed files with 43 additions and 10 deletions
|
@ -38,6 +38,7 @@ grub_cmd_boot (struct grub_arg_list *state __attribute__ ((unused)),
|
|||
|
||||
|
||||
|
||||
#ifdef GRUB_UTIL
|
||||
void
|
||||
grub_boot_init (void)
|
||||
{
|
||||
|
@ -50,7 +51,7 @@ grub_boot_fini (void)
|
|||
{
|
||||
grub_unregister_command ("boot");
|
||||
}
|
||||
|
||||
#else /* ! GRUB_UTIL */
|
||||
GRUB_MOD_INIT
|
||||
{
|
||||
(void)mod; /* To stop warning. */
|
||||
|
@ -62,4 +63,4 @@ GRUB_MOD_FINI
|
|||
{
|
||||
grub_unregister_command ("boot");
|
||||
}
|
||||
|
||||
#endif /* ! GRUB_UTIL */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue