summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-09-20 17:31:26 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-09-20 17:31:26 +0000
commit105ce36792717a0916cab18b7dd0a11db1f7c84a (patch)
tree3e5f93c11b2c626dbe306530bf1e0a5660a0d56a
parent9b5f5ed8e8f74a9a615dfb6f5975b2f054d6d1fd (diff)
Nuke unused variables and fix stupid error message.
-rw-r--r--cmd-link-window.c2
-rw-r--r--cmd-move-window.c2
-rw-r--r--cmd-unlink-window.c3
3 files changed, 2 insertions, 5 deletions
diff --git a/cmd-link-window.c b/cmd-link-window.c
index cbc0b083..95514d40 100644
--- a/cmd-link-window.c
+++ b/cmd-link-window.c
@@ -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 de00f2dd..4c92556a 100644
--- a/cmd-move-window.c
+++ b/cmd-move-window.c
@@ -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 5c9f811b..38904689 100644
--- a/cmd-unlink-window.c
+++ b/cmd-unlink-window.c
@@ -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);