diff options
author | nicm <nicm> | 2017-03-09 17:02:38 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-03-09 17:02:38 +0000 |
commit | dbfee6a468172899759a86c7bf50169053adce45 (patch) | |
tree | 6db1e79cc83501839bb96436a430cce03c1ea730 /server-fn.c | |
parent | e8f2609ca445b09b04cb131059e5b71c3a40f451 (diff) |
Move server_fill_environ into environ.c and move some other common code
into it.
Diffstat (limited to 'server-fn.c')
-rw-r--r-- | server-fn.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/server-fn.c b/server-fn.c index c14b4cab..9d7702a7 100644 --- a/server-fn.c +++ b/server-fn.c @@ -33,24 +33,6 @@ static void server_callback_identify(int, short, void *); static void server_destroy_session_group(struct session *); void -server_fill_environ(struct session *s, struct environ *env) -{ - const char *term; - u_int idx; - long pid; - - if (s != NULL) { - term = options_get_string(global_options, "default-terminal"); - environ_set(env, "TERM", "%s", term); - - idx = s->id; - } else - idx = (u_int)-1; - pid = getpid(); - environ_set(env, "TMUX", "%s,%ld,%u", socket_path, pid, idx); -} - -void server_redraw_client(struct client *c) { c->flags |= CLIENT_REDRAW; |