=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-select-layout.c,v retrieving revision 1.31 retrieving revision 1.32 diff -u -r1.31 -r1.32 --- src/usr.bin/tmux/cmd-select-layout.c 2016/10/14 22:14:22 1.31 +++ src/usr.bin/tmux/cmd-select-layout.c 2016/10/16 19:04:05 1.32 @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-select-layout.c,v 1.31 2016/10/14 22:14:22 nicm Exp $ */ +/* $OpenBSD: cmd-select-layout.c,v 1.32 2016/10/16 19:04:05 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott @@ -26,7 +26,8 @@ * Switch window to selected layout. */ -static enum cmd_retval cmd_select_layout_exec(struct cmd *, struct cmd_q *); +static enum cmd_retval cmd_select_layout_exec(struct cmd *, + struct cmdq_item *); const struct cmd_entry cmd_select_layout_entry = { .name = "select-layout", @@ -68,10 +69,10 @@ }; static enum cmd_retval -cmd_select_layout_exec(struct cmd *self, struct cmd_q *cmdq) +cmd_select_layout_exec(struct cmd *self, struct cmdq_item *item) { struct args *args = self->args; - struct winlink *wl = cmdq->state.tflag.wl; + struct winlink *wl = item->state.tflag.wl; struct window *w; const char *layoutname; char *oldlayout; @@ -118,7 +119,7 @@ if (layoutname != NULL) { if (layout_parse(w, layoutname) == -1) { - cmdq_error(cmdq, "can't set layout: %s", layoutname); + cmdq_error(item, "can't set layout: %s", layoutname); goto error; } goto changed;