aboutsummaryrefslogtreecommitdiff
path: root/names.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2016-10-12 09:45:49 +0100
committerThomas Adam <thomas@xteddy.org>2016-10-12 09:45:49 +0100
commitb9dc855016cf79c8bb8469c272dbc6bca24deadc (patch)
treea2049bea7b17ededbd12b77110d47353ed832e46 /names.c
parent27126f87976c63161fcae2ab1eb9c6df726a84ff (diff)
parent5c49e1d0c1afaf98512b2ffd1f31d91fecff9851 (diff)
downloadrtmux-b9dc855016cf79c8bb8469c272dbc6bca24deadc.tar.gz
rtmux-b9dc855016cf79c8bb8469c272dbc6bca24deadc.tar.bz2
rtmux-b9dc855016cf79c8bb8469c272dbc6bca24deadc.zip
Merge branch 'obsd-master'
Conflicts: format.c osdep-openbsd.c
Diffstat (limited to 'names.c')
-rw-r--r--names.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/names.c b/names.c
index 485155ff..6a368825 100644
--- a/names.c
+++ b/names.c
@@ -25,10 +25,12 @@
#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 char *format_window_name(struct window *);
+
+static void
name_time_callback(__unused int fd, __unused short events, void *arg)
{
struct window *w = arg;
@@ -37,7 +39,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;
@@ -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;