summaryrefslogtreecommitdiffstats
path: root/tmux.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2013-03-25 10:11:45 +0000
committerNicholas Marriott <nicm@openbsd.org>2013-03-25 10:11:45 +0000
commit6fee3e9e4b4c68c5d3d7f333c779ac865af7bf86 (patch)
tree9ea9b10bb53304355591a8c1889fd6e2a04519aa /tmux.c
parent748acdc77ca11a09e637324946a6a4f189defc8e (diff)
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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tmux.c b/tmux.c
index 7bce10ec..368562f8 100644
--- a/tmux.c
+++ b/tmux.c
@@ -49,7 +49,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);
@@ -144,16 +144,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 *