summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/cmd-kill-server.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2015-12-13 21:53:58 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2015-12-13 21:53:58 +0000
commitb6963b0c60cfb681b75de82ba3a20f950f4e7ea6 (patch)
tree46af6a3189c247c9d776e54ff1cdd580241e5c63 /usr.bin/tmux/cmd-kill-server.c
parent617a01beaf1c1a39a678cf2edc5d01ab1baae1fe (diff)
Use member names in cmd_entry definitions so I stop getting confused
about the order.
Diffstat (limited to 'usr.bin/tmux/cmd-kill-server.c')
-rw-r--r--usr.bin/tmux/cmd-kill-server.c28
1 files changed, 17 insertions, 11 deletions
diff --git a/usr.bin/tmux/cmd-kill-server.c b/usr.bin/tmux/cmd-kill-server.c
index 4948785858a..5fffab0e24f 100644
--- a/usr.bin/tmux/cmd-kill-server.c
+++ b/usr.bin/tmux/cmd-kill-server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-kill-server.c,v 1.14 2015/11/18 14:27:44 nicm Exp $ */
+/* $OpenBSD: cmd-kill-server.c,v 1.15 2015/12/13 21:53:57 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -30,19 +30,25 @@
enum cmd_retval cmd_kill_server_exec(struct cmd *, struct cmd_q *);
const struct cmd_entry cmd_kill_server_entry = {
- "kill-server", NULL,
- "", 0, 0,
- "",
- 0,
- cmd_kill_server_exec
+ .name = "kill-server",
+ .alias = NULL,
+
+ .args = { "", 0, 0 },
+ .usage = "",
+
+ .flags = 0,
+ .exec = cmd_kill_server_exec
};
const struct cmd_entry cmd_start_server_entry = {
- "start-server", "start",
- "", 0, 0,
- "",
- CMD_STARTSERVER,
- cmd_kill_server_exec
+ .name = "start-server",
+ .alias = "start",
+
+ .args = { "", 0, 0 },
+ .usage = "",
+
+ .flags = CMD_STARTSERVER,
+ .exec = cmd_kill_server_exec
};
enum cmd_retval