From c426e485e527a03aa3b4bdbb3203f621e006cbd5 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 10 Oct 2016 21:29:23 +0000 Subject: Loads more static, except for cmd-*.c and window-*.c. --- names.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'names.c') diff --git a/names.c b/names.c index 485155ff..b83a0cb7 100644 --- a/names.c +++ b/names.c @@ -25,10 +25,10 @@ #include "tmux.h" -void name_time_callback(int, short, void *); -int name_time_expired(struct window *, struct timeval *); +static void name_time_callback(int, short, void *); +static int name_time_expired(struct window *, struct timeval *); -void +static void name_time_callback(__unused int fd, __unused short events, void *arg) { struct window *w = arg; @@ -37,7 +37,7 @@ name_time_callback(__unused int fd, __unused short events, void *arg) log_debug("@%u name timer expired", w->id); } -int +static int name_time_expired(struct window *w, struct timeval *tv) { struct timeval offset; -- cgit From e45401846f0a423bb90ebd3943041a28b2657631 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 11 Oct 2016 13:21:59 +0000 Subject: Add static in window-*.c and move some internal functions out of tmux.h. --- names.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'names.c') diff --git a/names.c b/names.c index b83a0cb7..6a368825 100644 --- a/names.c +++ b/names.c @@ -25,8 +25,10 @@ #include "tmux.h" -static void name_time_callback(int, short, void *); -static int name_time_expired(struct window *, struct timeval *); +static void name_time_callback(int, short, void *); +static int name_time_expired(struct window *, struct timeval *); + +static char *format_window_name(struct window *); static void name_time_callback(__unused int fd, __unused short events, void *arg) @@ -115,7 +117,7 @@ default_window_name(struct window *w) return (s); } -char * +static char * format_window_name(struct window *w) { struct format_tree *ft; -- cgit