2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>

* normal/completion.c (complete_arguments): Add the qualifier
        const into OPTIONS.

        From Omniflux <omniflux+lists@omniflux.com>:
        * include/grub/terminfo.h: New file.
        * include/grub/tparm.h: Likewise.
        * include/grub/i386/pc/serial.h: Likewise.
        * term/terminfo.c: Likewise.
        * term/tparm.c: Likewise.
        * term/i386/pc/serial.c: Likewise.
        * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
        serial.mod.
        (terminfo_mod_SOURCES): New variable.
        (terminfo_mod_CFLAGS): Likewise.
        (serial_mod_SOURCES): Likewise.
        (serial_mod_CFLAGS): Likewise.
This commit is contained in:
okuji 2005-09-03 16:54:27 +00:00
parent 48b671ff70
commit 47d2d65e33
12 changed files with 1892 additions and 4 deletions

View file

@ -308,7 +308,7 @@ static int
complete_arguments (char *command)
{
grub_command_t cmd;
struct grub_arg_option *option;
const struct grub_arg_option *option;
char shortarg[] = "- ";
cmd = grub_command_find (command);
@ -322,7 +322,7 @@ complete_arguments (char *command)
/* Add the short arguments. */
for (option = cmd->options; option->doc; option++)
{
if (!option->shortarg)
if (! option->shortarg)
continue;
shortarg[1] = option->shortarg;