diff options
author | nicm <nicm> | 2015-04-24 23:17:11 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-04-24 23:17:11 +0000 |
commit | aeedb464a6ee038289ddcfefae437928ab020cb1 (patch) | |
tree | 0428a0446bd50d08e4b0fe6741644e36d8b1a071 /cmd-set-option.c | |
parent | 583b4ab72b7bf66fda8ab63a08fe435483de5e5a (diff) | |
download | rtmux-aeedb464a6ee038289ddcfefae437928ab020cb1.tar.gz rtmux-aeedb464a6ee038289ddcfefae437928ab020cb1.tar.bz2 rtmux-aeedb464a6ee038289ddcfefae437928ab020cb1.zip |
Convert clients list into a TAILQ.
Diffstat (limited to 'cmd-set-option.c')
-rw-r--r-- | cmd-set-option.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cmd-set-option.c b/cmd-set-option.c index e0d1ae6c..83d31b93 100644 --- a/cmd-set-option.c +++ b/cmd-set-option.c @@ -91,7 +91,6 @@ cmd_set_option_exec(struct cmd *self, struct cmd_q *cmdq) struct options *oo; struct window *w; const char *optstr, *valstr; - u_int i; /* Get the option name and value. */ optstr = args->argv[0]; @@ -186,9 +185,8 @@ cmd_set_option_exec(struct cmd *self, struct cmd_q *cmdq) /* Update sizes and redraw. May not need it but meh. */ recalculate_sizes(); - for (i = 0; i < ARRAY_LENGTH(&clients); i++) { - c = ARRAY_ITEM(&clients, i); - if (c != NULL && c->session != NULL) + TAILQ_FOREACH(c, &clients, entry) { + if (c->session != NULL) server_redraw_client(c); } |