=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/Attic/cmd-list-commands.c,v retrieving revision 1.9 retrieving revision 1.10 diff -c -r1.9 -r1.10 *** src/usr.bin/tmux/Attic/cmd-list-commands.c 2013/03/22 10:31:22 1.9 --- src/usr.bin/tmux/Attic/cmd-list-commands.c 2013/03/24 09:54:10 1.10 *************** *** 1,4 **** ! /* $OpenBSD: cmd-list-commands.c,v 1.9 2013/03/22 10:31:22 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: cmd-list-commands.c,v 1.10 2013/03/24 09:54:10 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 24,30 **** * List all commands with usages. */ ! enum cmd_retval cmd_list_commands_exec(struct cmd *, struct cmd_ctx *); const struct cmd_entry cmd_list_commands_entry = { "list-commands", "lscm", --- 24,30 ---- * List all commands with usages. */ ! enum cmd_retval cmd_list_commands_exec(struct cmd *, struct cmd_q *); const struct cmd_entry cmd_list_commands_entry = { "list-commands", "lscm", *************** *** 37,52 **** }; enum cmd_retval ! cmd_list_commands_exec(unused struct cmd *self, struct cmd_ctx *ctx) { const struct cmd_entry **entryp; for (entryp = cmd_table; *entryp != NULL; entryp++) { if ((*entryp)->alias != NULL) { ! ctx->print(ctx, "%s (%s) %s", (*entryp)->name, (*entryp)->alias, (*entryp)->usage); } else { ! ctx->print(ctx, "%s %s", (*entryp)->name, (*entryp)->usage); } } --- 37,52 ---- }; enum cmd_retval ! 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) { ! cmdq_print(cmdq, "%s (%s) %s", (*entryp)->name, (*entryp)->alias, (*entryp)->usage); } else { ! cmdq_print(cmdq, "%s %s", (*entryp)->name, (*entryp)->usage); } }