summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/names.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2016-10-11 13:22:00 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2016-10-11 13:22:00 +0000
commit7b83048a3c6235e9f4996ad7cf1736535660de8d (patch)
tree0cfe4f046930fdf9eace502dffd0dd219c62670f /usr.bin/tmux/names.c
parent473fce65f32c28b7882490f2037e8241197ad7fa (diff)
Add static in window-*.c and move some internal functions out of tmux.h.
Diffstat (limited to 'usr.bin/tmux/names.c')
-rw-r--r--usr.bin/tmux/names.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/tmux/names.c b/usr.bin/tmux/names.c
index 15c0ad00227..8e2a783fefd 100644
--- a/usr.bin/tmux/names.c
+++ b/usr.bin/tmux/names.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: names.c,v 1.36 2016/10/10 21:29:23 nicm Exp $ */
+/* $OpenBSD: names.c,v 1.37 2016/10/11 13:21:59 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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;