aboutsummaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2015-04-25 10:02:46 +0000
committerThomas Adam <thomas@xteddy.org>2015-04-25 10:02:46 +0000
commit56e1132db485aeb0730ce7782533ca441e63afef (patch)
tree310f172893f10f8f2f3a249ee88fed51b03b39cc /session.c
parent0a88377086329786c438d4973365fdb21186f4e4 (diff)
parentaeedb464a6ee038289ddcfefae437928ab020cb1 (diff)
downloadrtmux-56e1132db485aeb0730ce7782533ca441e63afef.tar.gz
rtmux-56e1132db485aeb0730ce7782533ca441e63afef.tar.bz2
rtmux-56e1132db485aeb0730ce7782533ca441e63afef.zip
Merge branch 'obsd-master'
Diffstat (limited to 'session.c')
-rw-r--r--session.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/session.c b/session.c
index 3ac9fb2b..b56ec376 100644
--- a/session.c
+++ b/session.c
@@ -308,16 +308,16 @@ session_detach(struct session *s, struct winlink *wl)
}
/* Return if session has window. */
-struct winlink *
+int
session_has(struct session *s, struct window *w)
{
struct winlink *wl;
RB_FOREACH(wl, winlinks, &s->windows) {
if (wl->window == w)
- return (wl);
+ return (1);
}
- return (NULL);
+ return (0);
}
struct winlink *