From dbfee6a468172899759a86c7bf50169053adce45 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 9 Mar 2017 17:02:38 +0000 Subject: Move server_fill_environ into environ.c and move some other common code into it. --- server-fn.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'server-fn.c') diff --git a/server-fn.c b/server-fn.c index c14b4cab..9d7702a7 100644 --- a/server-fn.c +++ b/server-fn.c @@ -32,24 +32,6 @@ static struct session *server_next_session(struct session *); 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) { -- cgit