diff options
author | 2015-10-27 15:58:42 +0000 | |
---|---|---|
committer | 2015-10-27 15:58:42 +0000 | |
commit | d89252e541ebb5e90a6b7e1089b8f396e19ca235 (patch) | |
tree | 6fd0ce863c715f2818c48c94c4f8de9afdb057e9 /usr.bin/tmux/resize.c | |
parent | Use AF_UNIX instead of AF_LOCAL. (diff) | |
download | wireguard-openbsd-d89252e541ebb5e90a6b7e1089b8f396e19ca235.tar.xz wireguard-openbsd-d89252e541ebb5e90a6b7e1089b8f396e19ca235.zip |
Move struct options into options.c.
Diffstat (limited to 'usr.bin/tmux/resize.c')
-rw-r--r-- | usr.bin/tmux/resize.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/tmux/resize.c b/usr.bin/tmux/resize.c index de40d211327..c5e19506e78 100644 --- a/usr.bin/tmux/resize.c +++ b/usr.bin/tmux/resize.c @@ -1,4 +1,4 @@ -/* $OpenBSD: resize.c,v 1.17 2015/04/24 23:17:11 nicm Exp $ */ +/* $OpenBSD: resize.c,v 1.18 2015/10/27 15:58:42 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -53,7 +53,7 @@ recalculate_sizes(void) int flag, has_status, is_zoomed, forced; RB_FOREACH(s, sessions, &sessions) { - has_status = options_get_number(&s->options, "status"); + has_status = options_get_number(s->options, "status"); s->attached = 0; ssx = ssy = UINT_MAX; @@ -94,7 +94,7 @@ recalculate_sizes(void) RB_FOREACH(w, windows, &windows) { if (w->active == NULL) continue; - flag = options_get_number(&w->options, "aggressive-resize"); + flag = options_get_number(w->options, "aggressive-resize"); ssx = ssy = UINT_MAX; RB_FOREACH(s, sessions, &sessions) { @@ -115,12 +115,12 @@ recalculate_sizes(void) continue; forced = 0; - limit = options_get_number(&w->options, "force-width"); + limit = options_get_number(w->options, "force-width"); if (limit >= PANE_MINIMUM && ssx > limit) { ssx = limit; forced |= WINDOW_FORCEWIDTH; } - limit = options_get_number(&w->options, "force-height"); + limit = options_get_number(w->options, "force-height"); if (limit >= PANE_MINIMUM && ssy > limit) { ssy = limit; forced |= WINDOW_FORCEHEIGHT; |