=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-kill-window.c,v retrieving revision 1.10 retrieving revision 1.11 diff -c -r1.10 -r1.11 *** src/usr.bin/tmux/cmd-kill-window.c 2012/05/29 08:11:34 1.10 --- src/usr.bin/tmux/cmd-kill-window.c 2012/05/29 08:12:13 1.11 *************** *** 1,4 **** ! /* $OpenBSD: cmd-kill-window.c,v 1.10 2012/05/29 08:11:34 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: cmd-kill-window.c,v 1.11 2012/05/29 08:12:13 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 40,53 **** cmd_kill_window_exec(struct cmd *self, struct cmd_ctx *ctx) { struct args *args = self->args; ! struct winlink *wl, *wl2; struct session *s; if ((wl = cmd_find_window(ctx, args_get(args, 't'), &s)) == NULL) return (-1); if (args_has(args, 'a')) { ! RB_FOREACH(wl2, winlinks, &s->windows) { if (wl != wl2) server_kill_window(wl2->window); } --- 40,53 ---- cmd_kill_window_exec(struct cmd *self, struct cmd_ctx *ctx) { struct args *args = self->args; ! struct winlink *wl, *wl2, *wl3; struct session *s; if ((wl = cmd_find_window(ctx, args_get(args, 't'), &s)) == NULL) return (-1); if (args_has(args, 'a')) { ! RB_FOREACH_SAFE(wl2, winlinks, &s->windows, wl3) { if (wl != wl2) server_kill_window(wl2->window); }