diff options
author | nicm <nicm> | 2016-05-27 17:05:42 +0000 |
---|---|---|
committer | nicm <nicm> | 2016-05-27 17:05:42 +0000 |
commit | fcb00a4161f5634189322f42a5769ca83d4be8c8 (patch) | |
tree | fe9e6d16ad9d3386c27a543000e968a5f70eae5f /tmux.c | |
parent | ec7f5305b1a6e5548f0769f988e76b01ec293dcc (diff) | |
download | rtmux-fcb00a4161f5634189322f42a5769ca83d4be8c8.tar.gz rtmux-fcb00a4161f5634189322f42a5769ca83d4be8c8.tar.bz2 rtmux-fcb00a4161f5634189322f42a5769ca83d4be8c8.zip |
Use getprogname() instead of __progname to make portability easier.
Diffstat (limited to 'tmux.c')
-rw-r--r-- | tmux.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -53,7 +53,7 @@ usage(void) fprintf(stderr, "usage: %s [-2Cluv] [-c shell-command] [-f file] [-L socket-name]\n" " [-S socket-path] [command [flags]]\n", - __progname); + getprogname()); exit(1); } @@ -95,7 +95,7 @@ areshell(const char *shell) ptr++; else ptr = shell; - progname = __progname; + progname = getprogname(); if (*progname == '-') progname++; if (strcmp(ptr, progname) == 0) |