diff options
author | 2016-10-11 13:21:59 +0000 | |
---|---|---|
committer | 2016-10-11 13:21:59 +0000 | |
commit | ced217699ffe77cdcd68550d0cd5144e02885fbd (patch) | |
tree | 4e8db157c9069258d6ed1270a2ee874d6502ef41 /usr.bin/tmux/session.c | |
parent | missing .Fl macro, from Jan Stary (diff) | |
download | wireguard-openbsd-ced217699ffe77cdcd68550d0cd5144e02885fbd.tar.xz wireguard-openbsd-ced217699ffe77cdcd68550d0cd5144e02885fbd.zip |
Add static in window-*.c and move some internal functions out of tmux.h.
Diffstat (limited to 'usr.bin/tmux/session.c')
-rw-r--r-- | usr.bin/tmux/session.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/usr.bin/tmux/session.c b/usr.bin/tmux/session.c index 98813bdc357..737979c93bd 100644 --- a/usr.bin/tmux/session.c +++ b/usr.bin/tmux/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.63 2016/10/10 21:29:23 nicm Exp $ */ +/* $OpenBSD: session.c,v 1.64 2016/10/11 13:21:59 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -38,6 +38,10 @@ static void session_lock_timer(int, short, void *); static struct winlink *session_next_alert(struct winlink *); static struct winlink *session_previous_alert(struct winlink *); +static void session_group_remove(struct session *); +static u_int session_group_count(struct session_group *); +static void session_group_synchronize1(struct session *, struct session *); + RB_GENERATE(sessions, session, entry, session_cmp); int @@ -582,7 +586,7 @@ session_group_add(struct session *target, struct session *s) } /* Remove a session from its group and destroy the group if empty. */ -void +static void session_group_remove(struct session *s) { struct session_group *sg; @@ -599,7 +603,7 @@ session_group_remove(struct session *s) } /* Count number of sessions in session group. */ -u_int +static u_int session_group_count(struct session_group *sg) { struct session *s; @@ -650,7 +654,7 @@ session_group_synchronize_from(struct session *target) * winlinks then recreating them, then updating the current window, last window * stack and alerts. */ -void +static void session_group_synchronize1(struct session *target, struct session *s) { struct winlinks old_windows, *ww; |