diff options
author | nicm <nicm> | 2016-10-10 21:29:23 +0000 |
---|---|---|
committer | nicm <nicm> | 2016-10-10 21:29:23 +0000 |
commit | c426e485e527a03aa3b4bdbb3203f621e006cbd5 (patch) | |
tree | 2f0add91706d06d7cf4d748294805c8d4d4d8d39 /notify.c | |
parent | 66b5477cc1909e57489f854939a524ce2cd0f479 (diff) | |
download | rtmux-c426e485e527a03aa3b4bdbb3203f621e006cbd5.tar.gz rtmux-c426e485e527a03aa3b4bdbb3203f621e006cbd5.tar.bz2 rtmux-c426e485e527a03aa3b4bdbb3203f621e006cbd5.zip |
Loads more static, except for cmd-*.c and window-*.c.
Diffstat (limited to 'notify.c')
-rw-r--r-- | notify.c | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -43,12 +43,13 @@ struct notify_entry { TAILQ_ENTRY(notify_entry) entry; }; -TAILQ_HEAD(, notify_entry) notify_queue = TAILQ_HEAD_INITIALIZER(notify_queue); -int notify_enabled = 1; +TAILQ_HEAD(notify_queue, notify_entry); +static struct notify_queue notify_queue = TAILQ_HEAD_INITIALIZER(notify_queue); +static int notify_enabled = 1; -void notify_drain(void); -void notify_add(enum notify_type, struct client *, struct session *, - struct window *); +static void notify_drain(void); +static void notify_add(enum notify_type, struct client *, struct session *, + struct window *); void notify_enable(void) @@ -63,7 +64,7 @@ notify_disable(void) notify_enabled = 0; } -void +static void notify_add(enum notify_type type, struct client *c, struct session *s, struct window *w) { @@ -84,7 +85,7 @@ notify_add(enum notify_type type, struct client *c, struct session *s, w->references++; } -void +static void notify_drain(void) { struct notify_entry *ne, *ne1; |