=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/Attic/cmd-suspend-client.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- src/usr.bin/tmux/Attic/cmd-suspend-client.c 2011/01/01 11:24:45 1.5 +++ src/usr.bin/tmux/Attic/cmd-suspend-client.c 2011/01/04 00:42:47 1.6 @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-suspend-client.c,v 1.5 2011/01/01 11:24:45 nicm Exp $ */ +/* $OpenBSD: cmd-suspend-client.c,v 1.6 2011/01/04 00:42:47 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott @@ -31,22 +31,21 @@ const struct cmd_entry cmd_suspend_client_entry = { "suspend-client", "suspendc", + "t:", 0, 0, CMD_TARGET_CLIENT_USAGE, - 0, "", - cmd_target_init, - cmd_target_parse, - cmd_suspend_client_exec, - cmd_target_free, - cmd_target_print + 0, + NULL, + NULL, + cmd_suspend_client_exec }; int cmd_suspend_client_exec(struct cmd *self, struct cmd_ctx *ctx) { - struct cmd_target_data *data = self->data; - struct client *c; + struct args *args = self->args; + struct client *c; - if ((c = cmd_find_client(ctx, data->target)) == NULL) + if ((c = cmd_find_client(ctx, args_get(args, 't'))) == NULL) return (-1); tty_stop_tty(&c->tty);