diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-07-22 21:34:36 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-07-22 21:34:36 +0000 |
commit | 5ee84436c8bd77800fc2c04a8c5b20442078cde0 (patch) | |
tree | 36f3f898fcb01cf8f0465c3101d54b821241a288 /window.c | |
parent | f7df0bac96bffd0f737d4e72578e1287061e42a4 (diff) | |
download | rtmux-5ee84436c8bd77800fc2c04a8c5b20442078cde0.tar.gz rtmux-5ee84436c8bd77800fc2c04a8c5b20442078cde0.tar.bz2 rtmux-5ee84436c8bd77800fc2c04a8c5b20442078cde0.zip |
window_add_pane cannot fail, so remove the unused cause argument and don't
bother to check for a NULL return.
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -260,10 +260,7 @@ window_create(const char *name, const char *cmd, const char *cwd, struct window_pane *wp; w = window_create1(sx, sy); - if ((wp = window_add_pane(w, hlimit, cause)) == NULL) { - window_destroy(w); - return (NULL); - } + wp = window_add_pane(w, hlimit); layout_init(w); if (window_pane_spawn(wp, cmd, cwd, envp, cause) != 0) { window_destroy(w); @@ -322,7 +319,7 @@ window_set_active_pane(struct window *w, struct window_pane *wp) } struct window_pane * -window_add_pane(struct window *w, u_int hlimit, unused char **cause) +window_add_pane(struct window *w, u_int hlimit) { struct window_pane *wp; |