summaryrefslogtreecommitdiffstats
path: root/cmd-kill-window.c
diff options
context:
space:
mode:
authornicm <nicm>2016-10-16 19:04:05 +0000
committernicm <nicm>2016-10-16 19:04:05 +0000
commitb342bd0b462f69a9fc9a59d52bcd4bb34b57114f (patch)
tree2da71181e3b540b8b52422cb598682f1505c2e89 /cmd-kill-window.c
parentddc4512d2e0eda6c705e002cb5dbf80719d709e1 (diff)
Mass rename struct cmd_q to struct cmdq_item and related.
Diffstat (limited to 'cmd-kill-window.c')
-rw-r--r--cmd-kill-window.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd-kill-window.c b/cmd-kill-window.c
index c7534d5c..6365aecb 100644
--- a/cmd-kill-window.c
+++ b/cmd-kill-window.c
@@ -24,7 +24,7 @@
* Destroy window.
*/
-static enum cmd_retval cmd_kill_window_exec(struct cmd *, struct cmd_q *);
+static enum cmd_retval cmd_kill_window_exec(struct cmd *, struct cmdq_item *);
const struct cmd_entry cmd_kill_window_entry = {
.name = "kill-window",
@@ -53,16 +53,16 @@ const struct cmd_entry cmd_unlink_window_entry = {
};
static enum cmd_retval
-cmd_kill_window_exec(struct cmd *self, struct cmd_q *cmdq)
+cmd_kill_window_exec(struct cmd *self, struct cmdq_item *item)
{
struct args *args = self->args;
- struct winlink *wl = cmdq->state.tflag.wl, *wl2, *wl3;
+ struct winlink *wl = item->state.tflag.wl, *wl2, *wl3;
struct window *w = wl->window;
- struct session *s = cmdq->state.tflag.s;
+ struct session *s = item->state.tflag.s;
if (self->entry == &cmd_unlink_window_entry) {
if (!args_has(self->args, 'k') && !session_is_linked(s, w)) {
- cmdq_error(cmdq, "window only linked to one session");
+ cmdq_error(item, "window only linked to one session");
return (CMD_RETURN_ERROR);
}
server_unlink_window(s, wl);