diff options
author | 2015-12-13 21:53:57 +0000 | |
---|---|---|
committer | 2015-12-13 21:53:57 +0000 | |
commit | c057646b0dae17915fcb431f61cfee0683267f35 (patch) | |
tree | 650e02d9861e7c56130c102355831ab1abf19331 /usr.bin/tmux/cmd-show-messages.c | |
parent | Sort button defines. (diff) | |
download | wireguard-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-show-messages.c')
-rw-r--r-- | usr.bin/tmux/cmd-show-messages.c | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/usr.bin/tmux/cmd-show-messages.c b/usr.bin/tmux/cmd-show-messages.c index f3ded3427fe..be64e8112f9 100644 --- a/usr.bin/tmux/cmd-show-messages.c +++ b/usr.bin/tmux/cmd-show-messages.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-show-messages.c,v 1.17 2015/12/13 14:32:38 nicm Exp $ */ +/* $OpenBSD: cmd-show-messages.c,v 1.18 2015/12/13 21:53:57 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -32,19 +32,25 @@ enum cmd_retval cmd_show_messages_exec(struct cmd *, struct cmd_q *); const struct cmd_entry cmd_show_messages_entry = { - "show-messages", "showmsgs", - "JTt:", 0, 0, - "[-JT] " CMD_TARGET_CLIENT_USAGE, - CMD_CLIENT_T, - cmd_show_messages_exec + .name = "show-messages", + .alias = "showmsgs", + + .args = { "JTt:", 0, 0 }, + .usage = "[-JT] " CMD_TARGET_CLIENT_USAGE, + + .flags = CMD_CLIENT_T, + .exec = cmd_show_messages_exec }; const struct cmd_entry cmd_server_info_entry = { - "server-info", "info", - "", 0, 0, - "", - 0, - cmd_show_messages_exec + .name = "server-info", + .alias = "info", + + .args = { "", 0, 0 }, + .usage = "", + + .flags = 0, + .exec = cmd_show_messages_exec }; int cmd_show_messages_terminals(struct cmd_q *, int); |