diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-04-22 15:32:34 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-04-22 15:32:34 +0000 |
commit | 5dc140d8e53da838f0e69a337a3d3e0b5cd1a7b4 (patch) | |
tree | 6c31109ef7a615f4e8ffaa2f644fea29b52c2d33 /usr.bin/tmux/tmux.h | |
parent | e1defde61408cf3b12d6307e3b39d732cca2c804 (diff) |
Make session_has return a flag, returning the first winlink found is a
recipe for errors.
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r-- | usr.bin/tmux/tmux.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h index 2d217c7b3b0..9d86f7d8de2 100644 --- a/usr.bin/tmux/tmux.h +++ b/usr.bin/tmux/tmux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.496 2015/04/22 15:30:11 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.497 2015/04/22 15:32:33 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -2321,7 +2321,7 @@ struct winlink *session_new(struct session *, const char *, int, char **, struct winlink *session_attach(struct session *, struct window *, int, char **); int session_detach(struct session *, struct winlink *); -struct winlink *session_has(struct session *, struct window *); +int session_has(struct session *, struct window *); int session_next(struct session *, int); int session_previous(struct session *, int); int session_select(struct session *, int); |