summaryrefslogtreecommitdiffstats
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2011-01-25 22:31:50 +0000
committerNicholas Marriott <nicm@openbsd.org>2011-01-25 22:31:50 +0000
commit1270f8fed8642ac61d14be6a3aeb8d002db82a78 (patch)
tree737023d730f81a567c7666077b03b57f07401310 /tmux.h
parent1df33554382a09aaca4879e4857f42b91ca3bbc6 (diff)
Check if the index is in use and fail before creating the child process,
rather than leaving a stray child on failure.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index f6a45d33..a1e31e32 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1828,7 +1828,8 @@ struct winlink *winlink_find_by_index(struct winlinks *, int);
struct winlink *winlink_find_by_window(struct winlinks *, struct window *);
int winlink_next_index(struct winlinks *, int);
u_int winlink_count(struct winlinks *);
-struct winlink *winlink_add(struct winlinks *, struct window *, int);
+struct winlink *winlink_add(struct winlinks *, int);
+void winlink_set_window(struct winlink *, struct window *);
void winlink_remove(struct winlinks *, struct winlink *);
struct winlink *winlink_next(struct winlink *);
struct winlink *winlink_previous(struct winlink *);