Adjust for new command interface.

This commit is contained in:
Robert Millan 2010-01-18 17:38:39 +00:00
parent cdefd058dc
commit 394ec6b646
2 changed files with 9 additions and 9 deletions

View file

@ -132,12 +132,12 @@ grub_cmd_memmap (struct grub_arg_list *state, int argc, char **args)
GRUB_MOD_INIT(memmap)
{
(void)mod; /* To stop warning. */
grub_register_command ("memmap", grub_cmd_memmap, GRUB_COMMAND_FLAG_BOTH,
"memmap",
"Display memory map.", NULL);
grub_register_extcmd ("memmap", grub_cmd_memmap, GRUB_COMMAND_FLAG_BOTH,
"memmap",
"Display memory map.", NULL);
}
GRUB_MOD_FINI(memmap)
{
grub_unregister_command ("memmap");
grub_unregister_extcmd ("memmap");
}

View file

@ -246,13 +246,13 @@ grub_cmd_systab (struct grub_arg_list *state, int argc, char **args)
GRUB_MOD_INIT(systab)
{
(void)mod; /* To stop warning. */
grub_register_command ("systab", grub_cmd_systab, GRUB_COMMAND_FLAG_BOTH,
"systab [NAME]",
"Display EFI system table.", NULL);
(void) mod; /* To stop warning. */
grub_register_extcmd ("systab", grub_cmd_systab, GRUB_COMMAND_FLAG_BOTH,
"systab [NAME]",
"Display EFI system table.", NULL);
}
GRUB_MOD_FINI(systab)
{
grub_unregister_command ("systab");
grub_unregister_extcmd ("systab");
}