summaryrefslogtreecommitdiffstats
path: root/cmd-list-commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-list-commands.c')
-rw-r--r--cmd-list-commands.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd-list-commands.c b/cmd-list-commands.c
index 05a31ec5..7073d5f8 100644
--- a/cmd-list-commands.c
+++ b/cmd-list-commands.c
@@ -24,7 +24,7 @@
* List all commands with usages.
*/
-enum cmd_retval cmd_list_commands_exec(struct cmd *, struct cmd_ctx *);
+enum cmd_retval cmd_list_commands_exec(struct cmd *, struct cmd_q *);
const struct cmd_entry cmd_list_commands_entry = {
"list-commands", "lscm",
@@ -37,16 +37,16 @@ const struct cmd_entry cmd_list_commands_entry = {
};
enum cmd_retval
-cmd_list_commands_exec(unused struct cmd *self, struct cmd_ctx *ctx)
+cmd_list_commands_exec(unused struct cmd *self, struct cmd_q *cmdq)
{
const struct cmd_entry **entryp;
for (entryp = cmd_table; *entryp != NULL; entryp++) {
if ((*entryp)->alias != NULL) {
- ctx->print(ctx, "%s (%s) %s", (*entryp)->name,
+ cmdq_print(cmdq, "%s (%s) %s", (*entryp)->name,
(*entryp)->alias, (*entryp)->usage);
} else {
- ctx->print(ctx, "%s %s", (*entryp)->name,
+ cmdq_print(cmdq, "%s %s", (*entryp)->name,
(*entryp)->usage);
}
}