diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-03-07 10:07:22 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-03-07 10:07:22 +0000 |
commit | f47a063841f2baa1590fb9e53713b3713a03020d (patch) | |
tree | 8f21004a7ea01ea5c72519e8cd3e44535c57fc45 /tmux.c | |
parent | bc3580fa066ee38fd752b8414cb72af7bf3861b8 (diff) | |
download | rtmux-f47a063841f2baa1590fb9e53713b3713a03020d.tar.gz rtmux-f47a063841f2baa1590fb9e53713b3713a03020d.tar.bz2 rtmux-f47a063841f2baa1590fb9e53713b3713a03020d.zip |
Rename session idx to session id throughout and add $ prefix to targets to use
it, extended from a diff from George Nachman.
Diffstat (limited to 'tmux.c')
-rw-r--r-- | tmux.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -48,7 +48,7 @@ char socket_path[MAXPATHLEN]; int login_shell; char *environ_path; pid_t environ_pid = -1; -int environ_idx = -1; +int environ_session_id = -1; __dead void usage(void); void parseenvironment(void); @@ -147,16 +147,16 @@ parseenvironment(void) { char *env, path[256]; long pid; - int idx; + int id; if ((env = getenv("TMUX")) == NULL) return; - if (sscanf(env, "%255[^,],%ld,%d", path, &pid, &idx) != 3) + if (sscanf(env, "%255[^,],%ld,%d", path, &pid, &id) != 3) return; environ_path = xstrdup(path); environ_pid = pid; - environ_idx = idx; + environ_session_id = id; } char * |