aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tmux.c4
-rw-r--r--tmux.h1
2 files changed, 2 insertions, 3 deletions
diff --git a/tmux.c b/tmux.c
index 345f9e0c..a865f368 100644
--- a/tmux.c
+++ b/tmux.c
@@ -56,7 +56,7 @@ usage(void)
fprintf(stderr,
"usage: %s [-2CluvV] [-c shell-command] [-f file] [-L socket-name]\n"
" [-S socket-path] [command [flags]]\n",
- __progname);
+ getprogname());
exit(1);
}
@@ -98,7 +98,7 @@ areshell(const char *shell)
ptr++;
else
ptr = shell;
- progname = __progname;
+ progname = getprogname();
if (*progname == '-')
progname++;
if (strcmp(ptr, progname) == 0)
diff --git a/tmux.h b/tmux.h
index 1f0301dd..e360a351 100644
--- a/tmux.h
+++ b/tmux.h
@@ -38,7 +38,6 @@
#include "compat.h"
#include "xmalloc.h"
-extern char *__progname;
extern char **environ;
struct client;