path: root/cmd-server-info.c
authortcunha <tcunha>2011-01-07 14:45:33 (GMT)
committer tcunha <tcunha>2011-01-07 14:45:33 (GMT)
commit1c7a360ed2cd87d299d6f26874381798177ee5fc (patch) (side-by-side diff)
tree7a110cc712014eb9653d81f598796943f32c6505 /cmd-server-info.c
parent3399e17193a3a994a334f887c81d0f95a8557505 (diff)
Sync OpenBSD patchset 829:
Clean up and simplify tmux command argument parsing. Originally, tmux commands were parsed in the client process into a struct with the command data which was then serialised and sent to the server to be executed. The parsing was later moved into the server (an argv was sent from the client), but the parse step and intermediate struct was kept. This change removes that struct and the separate parse step. Argument parsing and printing is now common to all commands (in arguments.c) with each command left with just an optional check function (to validate the arguments at parse time), the exec function and a function to set up any key bindings (renamed from the old init function). This is overall more simple and consistent. There should be no changes to any commands behaviour or syntax although as this touches every command please watch for any unexpected changes.
Diffstat (limited to 'cmd-server-info.c') (more/less context) (ignore whitespace changes)
1 files changed, 4 insertions, 5 deletions
diff --git a/cmd-server-info.c b/cmd-server-info.c
index 32ebcfd..b919f9e 100644
--- a/cmd-server-info.c
+++ b/cmd-server-info.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-server-info.c,v 1.40 2011/01/03 23:30:43 tcunha Exp $ */
+/* $Id: cmd-server-info.c,v 1.41 2011/01/07 14:45:34 tcunha Exp $ */
* Copyright (c) 2008 Nicholas Marriott <[email protected]>
@@ -34,13 +34,12 @@ int cmd_server_info_exec(struct cmd *, struct cmd_ctx *);
const struct cmd_entry cmd_server_info_entry = {
"server-info", "info",
+ "", 0, 0,
- 0, "",
+ 0,
- cmd_server_info_exec,
+ cmd_server_info_exec