diff options
author | 2016-05-27 17:05:42 +0000 | |
---|---|---|
committer | 2016-05-27 17:05:42 +0000 | |
commit | d3b99136cb3f1b0c292e4a36bfa55d53c0446abd (patch) | |
tree | 42c29bc3bc21241ad36d94ae488dfbf7c65fe902 /usr.bin/tmux/tmux.c | |
parent | No need to show the messages if we skip in case of /usr/lib on nfs. (diff) | |
download | wireguard-openbsd-d3b99136cb3f1b0c292e4a36bfa55d53c0446abd.tar.xz wireguard-openbsd-d3b99136cb3f1b0c292e4a36bfa55d53c0446abd.zip |
Use getprogname() instead of __progname to make portability easier.
Diffstat (limited to 'usr.bin/tmux/tmux.c')
-rw-r--r-- | usr.bin/tmux/tmux.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/tmux.c b/usr.bin/tmux/tmux.c index fc6572de684..6602cf08734 100644 --- a/usr.bin/tmux/tmux.c +++ b/usr.bin/tmux/tmux.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.c,v 1.169 2016/05/04 21:29:47 nicm Exp $ */ +/* $OpenBSD: tmux.c,v 1.170 2016/05/27 17:05:42 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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) |