diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-09-20 17:31:27 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-09-20 17:31:27 +0000 |
commit | 57cdee59adeb162697500b613793171a7c34041a (patch) | |
tree | fe9d4f34ba4352617e5ebed16ad988ec9cbef47e /usr.bin/tmux | |
parent | e185d96b67da57e91f8dd5ddd4fcdd07b40d107c (diff) |
Nuke unused variables and fix stupid error message.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/cmd-link-window.c | 4 | ||||
-rw-r--r-- | usr.bin/tmux/cmd-move-window.c | 4 | ||||
-rw-r--r-- | usr.bin/tmux/cmd-unlink-window.c | 5 |
3 files changed, 5 insertions, 8 deletions
diff --git a/usr.bin/tmux/cmd-link-window.c b/usr.bin/tmux/cmd-link-window.c index 39914a3f234..17c9adbc669 100644 --- a/usr.bin/tmux/cmd-link-window.c +++ b/usr.bin/tmux/cmd-link-window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-link-window.c,v 1.6 2009/09/20 17:27:18 nicm Exp $ */ +/* $OpenBSD: cmd-link-window.c,v 1.7 2009/09/20 17:31:26 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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/usr.bin/tmux/cmd-move-window.c b/usr.bin/tmux/cmd-move-window.c index 360b8b883d5..fc7a4a867a8 100644 --- a/usr.bin/tmux/cmd-move-window.c +++ b/usr.bin/tmux/cmd-move-window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-move-window.c,v 1.6 2009/09/20 17:27:18 nicm Exp $ */ +/* $OpenBSD: cmd-move-window.c,v 1.7 2009/09/20 17:31:26 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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/usr.bin/tmux/cmd-unlink-window.c b/usr.bin/tmux/cmd-unlink-window.c index 831caa7db8e..51a1cb6c2b0 100644 --- a/usr.bin/tmux/cmd-unlink-window.c +++ b/usr.bin/tmux/cmd-unlink-window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-unlink-window.c,v 1.5 2009/09/20 17:27:18 nicm Exp $ */ +/* $OpenBSD: cmd-unlink-window.c,v 1.6 2009/09/20 17:31:26 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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); |