=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/alerts.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- src/usr.bin/tmux/alerts.c 2016/05/11 20:56:58 1.11 +++ src/usr.bin/tmux/alerts.c 2016/10/03 22:52:11 1.12 @@ -1,4 +1,4 @@ -/* $OpenBSD: alerts.c,v 1.11 2016/05/11 20:56:58 nicm Exp $ */ +/* $OpenBSD: alerts.c,v 1.12 2016/10/03 22:52:11 nicm Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott @@ -22,21 +22,21 @@ #include "tmux.h" -int alerts_fired; +static int alerts_fired; -void alerts_timer(int, short, void *); -int alerts_enabled(struct window *, int); -void alerts_callback(int, short, void *); -void alerts_reset(struct window *); +static void alerts_timer(int, short, void *); +static int alerts_enabled(struct window *, int); +static void alerts_callback(int, short, void *); +static void alerts_reset(struct window *); -void alerts_run_hook(struct session *, struct winlink *, int); -int alerts_check_all(struct session *, struct winlink *); -int alerts_check_bell(struct session *, struct winlink *); -int alerts_check_activity(struct session *, struct winlink *); -int alerts_check_silence(struct session *, struct winlink *); -void alerts_ring_bell(struct session *); +static void alerts_run_hook(struct session *, struct winlink *, int); +static int alerts_check_all(struct session *, struct winlink *); +static int alerts_check_bell(struct session *, struct winlink *); +static int alerts_check_activity(struct session *, struct winlink *); +static int alerts_check_silence(struct session *, struct winlink *); +static void alerts_ring_bell(struct session *); -void +static void alerts_timer(__unused int fd, __unused short events, void *arg) { struct window *w = arg; @@ -46,7 +46,7 @@ alerts_queue(w, WINDOW_SILENCE); } -void +static void alerts_callback(__unused int fd, __unused short events, __unused void *arg) { struct window *w; @@ -72,7 +72,7 @@ alerts_fired = 0; } -void +static void alerts_run_hook(struct session *s, struct winlink *wl, int flags) { struct cmd_find_state fs; @@ -88,7 +88,7 @@ hooks_run(s->hooks, NULL, &fs, "alert-activity"); } -int +static int alerts_check_all(struct session *s, struct winlink *wl) { int alerts; @@ -113,7 +113,7 @@ alerts_check_all(s, wl); } -int +static int alerts_enabled(struct window *w, int flags) { if (flags & WINDOW_BELL) @@ -138,7 +138,7 @@ alerts_reset(w); } -void +static void alerts_reset(struct window *w) { struct timeval tv; @@ -175,7 +175,7 @@ } } -int +static int alerts_check_bell(struct session *s, struct winlink *wl) { struct client *c; @@ -218,7 +218,7 @@ return (WINDOW_BELL); } -int +static int alerts_check_activity(struct session *s, struct winlink *wl) { struct client *c; @@ -250,7 +250,7 @@ return (WINDOW_ACTIVITY); } -int +static int alerts_check_silence(struct session *s, struct winlink *wl) { struct client *c; @@ -282,7 +282,7 @@ return (WINDOW_SILENCE); } -void +static void alerts_ring_bell(struct session *s) { struct client *c;