diff --git a/cmd-link-window.c b/cmd-link-window.c index 85106991..59a59109 100644 --- a/cmd-link-window.c +++ b/cmd-link-window.c @@ -1,4 +1,4 @@ -/* $Id: cmd-link-window.c,v 1.33 2009-09-20 22:15:32 tcunha Exp $ */ +/* $Id: cmd-link-window.c,v 1.34 2009-09-20 22:17:03 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -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); } diff --git a/cmd-move-window.c b/cmd-move-window.c index de1f61f7..ae0595d2 100644 --- a/cmd-move-window.c +++ b/cmd-move-window.c @@ -1,4 +1,4 @@ -/* $Id: cmd-move-window.c,v 1.10 2009-09-20 22:15:32 tcunha Exp $ */ +/* $Id: cmd-move-window.c,v 1.11 2009-09-20 22:17:03 tcunha Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott @@ -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); } diff --git a/cmd-unlink-window.c b/cmd-unlink-window.c index ce3fa430..dea0a058 100644 --- a/cmd-unlink-window.c +++ b/cmd-unlink-window.c @@ -1,4 +1,4 @@ -/* $Id: cmd-unlink-window.c,v 1.17 2009-09-20 22:15:32 tcunha Exp $ */ +/* $Id: cmd-unlink-window.c,v 1.18 2009-09-20 22:17:03 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -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);