Carlos Roberto do Nascimento Costa wrote:
+ (void)mod; /* To stop warning. */
+ cmd = grub_register_command ("clear", grub_cmd_clear,
+ 0, "Clear the terminal screen.");
I think there shouldn't be a `0' but `GRUB_COMMAND_FLAG_CMDLINE'.
Yes, you are right. grub_register_command isn't the correct function to register
a command and grub_register_extcmd is the new way. However, there are still
modules need to be fixed, right?! I'll write another e-mail about it soon.
Your declaration is correct
------------------------------------------------------------------------
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel
--
Regards
Vladimir 'phcoder' Serbinenko
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel