slightly improve command_defs[]
* make the struct `const` * use designated initializers * remove `CMD_NOxyz` macros * fix function-pointer correctness of `sub_func[]` Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
@@ -1315,7 +1315,7 @@ cmd_ac_add_help(const char* const value)
|
||||
}
|
||||
|
||||
void
|
||||
cmd_ac_add_cmd(Command* command)
|
||||
cmd_ac_add_cmd(const Command* command)
|
||||
{
|
||||
autocomplete_add(commands_ac, command->cmd);
|
||||
autocomplete_add(help_ac, command->cmd + 1);
|
||||
|
||||
Reference in New Issue
Block a user