diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2016-10-15 09:27:53 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2016-10-15 09:27:53 +0000 |
commit | 43a23c05bd2129ce775aa2d0367a592b5c6361af (patch) | |
tree | 81a4ee21de2a4857305c51b1ed6e466d2524ab37 /usr.bin/tmux/window.c | |
parent | 5d0e2280c62829f61d7b035a8eb33603d7b6647f (diff) |
Give window_create and window_create1 better names.
Diffstat (limited to 'usr.bin/tmux/window.c')
-rw-r--r-- | usr.bin/tmux/window.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c index 3dcbdf9ca87..bd08b40dffc 100644 --- a/usr.bin/tmux/window.c +++ b/usr.bin/tmux/window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window.c,v 1.170 2016/10/13 20:27:27 nicm Exp $ */ +/* $OpenBSD: window.c,v 1.171 2016/10/15 09:27:52 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -293,7 +293,7 @@ window_update_activity(struct window *w) } struct window * -window_create1(u_int sx, u_int sy) +window_create(u_int sx, u_int sy) { struct window *w; @@ -323,19 +323,19 @@ window_create1(u_int sx, u_int sy) } struct window * -window_create(const char *name, int argc, char **argv, const char *path, +window_create_spawn(const char *name, int argc, char **argv, const char *path, const char *shell, const char *cwd, struct environ *env, struct termios *tio, u_int sx, u_int sy, u_int hlimit, char **cause) { struct window *w; struct window_pane *wp; - w = window_create1(sx, sy); + w = window_create(sx, sy); wp = window_add_pane(w, NULL, hlimit); layout_init(w, wp); - if (window_pane_spawn(wp, argc, argv, path, shell, cwd, env, tio, - cause) != 0) { + if (window_pane_spawn(wp, argc, argv, path, shell, cwd, + env, tio, cause) != 0) { window_destroy(w); return (NULL); } |