Nuke unused variables and fix stupid error message.

This commit is contained in:
Nicholas Marriott 2009-09-20 17:31:26 +00:00
parent 9b5f5ed8e8
commit 105ce36792
3 changed files with 2 additions and 5 deletions

View File

@ -56,7 +56,7 @@ cmd_link_window_exec(struct cmd *self, struct cmd_ctx *ctx)
kflag = data->chflags & CMD_CHFLAG('k');
dflag = data->chflags & CMD_CHFLAG('d');
if (server_link_window(wl, dst, idx, kflag, !dflag, &cause) != 0) {
ctx->error(ctx, "can't create session: %s", cause);
ctx->error(ctx, "can't link window: %s", cause);
xfree(cause);
return (-1);
}

View File

@ -56,7 +56,7 @@ cmd_move_window_exec(struct cmd *self, struct cmd_ctx *ctx)
kflag = data->chflags & CMD_CHFLAG('k');
dflag = data->chflags & CMD_CHFLAG('d');
if (server_link_window(wl, dst, idx, kflag, !dflag, &cause) != 0) {
ctx->error(ctx, "can't create session: %s", cause);
ctx->error(ctx, "can't move window: %s", cause);
xfree(cause);
return (-1);
}

View File

@ -43,9 +43,6 @@ cmd_unlink_window_exec(struct cmd *self, struct cmd_ctx *ctx)
struct cmd_target_data *data = self->data;
struct winlink *wl;
struct session *s;
struct client *c;
u_int i;
int destroyed;
if ((wl = cmd_find_window(ctx, data->target, &s)) == NULL)
return (-1);