mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 13:37:12 +00:00
Convert clients list into a TAILQ.
This commit is contained in:
6
notify.c
6
notify.c
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user