summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-list-keys.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2015-12-13 21:53:57 +0000
committernicm <nicm@openbsd.org>2015-12-13 21:53:57 +0000
commitc057646b0dae17915fcb431f61cfee0683267f35 (patch)
tree650e02d9861e7c56130c102355831ab1abf19331 /usr.bin/tmux/cmd-list-keys.c
parentSort button defines. (diff)
downloadwireguard-openbsd-c057646b0dae17915fcb431f61cfee0683267f35.tar.xz
wireguard-openbsd-c057646b0dae17915fcb431f61cfee0683267f35.zip
Use member names in cmd_entry definitions so I stop getting confused
about the order.
Diffstat (limited to 'usr.bin/tmux/cmd-list-keys.c')
-rw-r--r--usr.bin/tmux/cmd-list-keys.c28
1 files changed, 17 insertions, 11 deletions
diff --git a/usr.bin/tmux/cmd-list-keys.c b/usr.bin/tmux/cmd-list-keys.c
index d9f0f2cf49f..97c7d178de5 100644
--- a/usr.bin/tmux/cmd-list-keys.c
+++ b/usr.bin/tmux/cmd-list-keys.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-list-keys.c,v 1.31 2015/11/27 15:06:43 nicm Exp $ */
+/* $OpenBSD: cmd-list-keys.c,v 1.32 2015/12/13 21:53:57 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -33,19 +33,25 @@ enum cmd_retval cmd_list_keys_table(struct cmd *, struct cmd_q *);
enum cmd_retval cmd_list_keys_commands(struct cmd_q *);
const struct cmd_entry cmd_list_keys_entry = {
- "list-keys", "lsk",
- "t:T:", 0, 0,
- "[-t mode-table] [-T key-table]",
- 0,
- cmd_list_keys_exec
+ .name = "list-keys",
+ .alias = "lsk",
+
+ .args = { "t:T:", 0, 0 },
+ .usage = "[-t mode-table] [-T key-table]",
+
+ .flags = 0,
+ .exec = cmd_list_keys_exec
};
const struct cmd_entry cmd_list_commands_entry = {
- "list-commands", "lscm",
- "", 0, 0,
- "",
- 0,
- cmd_list_keys_exec
+ .name = "list-commands",
+ .alias = "lscm",
+
+ .args = { "", 0, 0 },
+ .usage = "",
+
+ .flags = 0,
+ .exec = cmd_list_keys_exec
};
enum cmd_retval