[BACK]Return to cmd-suspend-client.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/Attic/cmd-suspend-client.c between version 1.5 and 1.6

version 1.5, 2011/01/01 11:24:45 version 1.6, 2011/01/04 00:42:47
Line 31 
Line 31 
   
 const struct cmd_entry cmd_suspend_client_entry = {  const struct cmd_entry cmd_suspend_client_entry = {
         "suspend-client", "suspendc",          "suspend-client", "suspendc",
           "t:", 0, 0,
         CMD_TARGET_CLIENT_USAGE,          CMD_TARGET_CLIENT_USAGE,
         0, "",          0,
         cmd_target_init,          NULL,
         cmd_target_parse,          NULL,
         cmd_suspend_client_exec,          cmd_suspend_client_exec
         cmd_target_free,  
         cmd_target_print  
 };  };
   
 int  int
 cmd_suspend_client_exec(struct cmd *self, struct cmd_ctx *ctx)  cmd_suspend_client_exec(struct cmd *self, struct cmd_ctx *ctx)
 {  {
         struct cmd_target_data  *data = self->data;          struct args     *args = self->args;
         struct client           *c;          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);                  return (-1);
   
         tty_stop_tty(&c->tty);          tty_stop_tty(&c->tty);

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6