commit ef2878d5ee20e54a82b49831f17db2cc7e33c7ee
parent 2ba4efe39ed21182530f20de6bde63fefd566113
Author: Tim Kourt <tim.a.kourt@linux.intel.com>
Date: Fri, 3 Aug 2018 14:35:38 -0700
client: rename generic cmd list
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/client/command.c b/client/command.c
@@ -51,7 +51,7 @@ static enum cmd_status cmd_quit(const char *entity,
return CMD_STATUS_DONE;
}
-static const struct command command_list[] = {
+static const struct command misc_commands[] = {
{ NULL, "version", NULL, cmd_version, "Display version" },
{ NULL, "quit", NULL, cmd_quit, "Quit program" },
{ NULL, "exit", NULL, cmd_quit },
@@ -83,7 +83,7 @@ static char *cmd_generator(const char *text, int state)
return l_strdup(family->name);
}
- while ((cmd = command_list[index].cmd)) {
+ while ((cmd = misc_commands[index].cmd)) {
index++;
if (strncmp(cmd, text, len))
@@ -463,7 +463,7 @@ void command_process_prompt(char **argv, int argc)
display_refresh_reset();
- if (match_cmd(NULL, argv[0], argv + 1, argc - 1, command_list))
+ if (match_cmd(NULL, argv[0], argv + 1, argc - 1, misc_commands))
return;
if (strcmp(argv[0], "help")) {
@@ -478,7 +478,7 @@ void command_process_prompt(char **argv, int argc)
display("\nMiscellaneous:\n");
- list_commands(NULL, command_list);
+ list_commands(NULL, misc_commands);
}
void command_family_register(const struct command_family *family)