diff options
author | nicm <nicm> | 2019-06-15 06:33:48 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-06-15 06:33:48 +0000 |
commit | 03da0ced46e0ddcfbdcc6d580d906f47279cabcd (patch) | |
tree | 9f94b9d8a4eb7a52b44a8d283acf5a56edad5f84 /layout-custom.c | |
parent | c95cd9ed5e5e89e1ed467dbd5b7d8c80f672a5a1 (diff) | |
download | rtmux-03da0ced46e0ddcfbdcc6d580d906f47279cabcd.tar.gz rtmux-03da0ced46e0ddcfbdcc6d580d906f47279cabcd.tar.bz2 rtmux-03da0ced46e0ddcfbdcc6d580d906f47279cabcd.zip |
Use the right format modifier when comparing, and remove a couple of
unused variables.
Diffstat (limited to 'layout-custom.c')
-rw-r--r-- | layout-custom.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/layout-custom.c b/layout-custom.c index 4d9e818b..bedcaf10 100644 --- a/layout-custom.c +++ b/layout-custom.c @@ -122,7 +122,7 @@ layout_parse(struct window *w, const char *layout) { struct layout_cell *lc, *lcchild; struct window_pane *wp; - u_int npanes, ncells, sx, sy; + u_int npanes, ncells; u_short csum; /* Check validity. */ @@ -153,8 +153,7 @@ layout_parse(struct window *w, const char *layout) layout_destroy_cell(w, lcchild, &lc); } - /* Save the old window size and resize to the layout size. */ - sx = w->sx; sy = w->sy; + /* Resize to the layout size. */ window_resize(w, lc->sx, lc->sy); /* Destroy the old layout and swap to the new. */ |