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 /notify.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 'notify.c')
-rw-r--r-- | notify.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -136,7 +136,6 @@ void notify_input(struct window_pane *wp, struct evbuffer *input) { struct client *c; - u_int i; /* * notify_input() is not queued and only does anything when @@ -145,9 +144,8 @@ notify_input(struct window_pane *wp, struct evbuffer *input) if (!notify_enabled) return; - for (i = 0; i < ARRAY_LENGTH(&clients); i++) { - c = ARRAY_ITEM(&clients, i); - if (c != NULL && (c->flags & CLIENT_CONTROL)) + TAILQ_FOREACH(c, &clients, entry) { + if (c->flags & CLIENT_CONTROL) control_notify_input(c, wp, input); } } |