diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2013-03-26 10:54:48 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2013-03-26 10:54:48 +0000 |
commit | 771d7db3a6e19cd773b2f1a2547ec3db5f75b07f (patch) | |
tree | b52d33cf83980eadfa39b20aa14627905774987a /window.c | |
parent | 972da2d498d6e410fd97c55fb422af7caf464622 (diff) | |
download | rtmux-771d7db3a6e19cd773b2f1a2547ec3db5f75b07f.tar.gz rtmux-771d7db3a6e19cd773b2f1a2547ec3db5f75b07f.tar.bz2 rtmux-771d7db3a6e19cd773b2f1a2547ec3db5f75b07f.zip |
Fix compiler warnings, missing #include. From Thomas Adam.
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -496,19 +496,18 @@ window_zoom(struct window_pane *wp) int window_unzoom(struct window *w) { - struct window_pane *wp, *wp1; + struct window_pane *wp; if (!(w->flags & WINDOW_ZOOMED)) return (-1); - wp = w->active; w->flags &= ~WINDOW_ZOOMED; layout_free(w); w->layout_root = w->saved_layout_root; - TAILQ_FOREACH(wp1, &w->panes, entry) { - wp1->layout_cell = wp1->saved_layout_cell; - wp1->saved_layout_cell = NULL; + TAILQ_FOREACH(wp, &w->panes, entry) { + wp->layout_cell = wp->saved_layout_cell; + wp->saved_layout_cell = NULL; } layout_fix_panes(w, w->sx, w->sy); |