mirror of
https://github.com/tmux/tmux.git
synced 2024-12-04 19:58:48 +00:00
__progname -> getprogname()
Fix fallout from recent use of getprogname(), which deprecates __progname.
This commit is contained in:
parent
a2e0db67cc
commit
c10d83b4df
@ -84,7 +84,8 @@ BSDgetopt(int nargc, char *const *nargv, const char *ostr)
|
||||
++BSDoptind;
|
||||
if (BSDopterr && *ostr != ':')
|
||||
(void)fprintf(stderr,
|
||||
"%s: unknown option -- %c\n", __progname, BSDoptopt);
|
||||
"%s: unknown option -- %c\n", getprogname(),
|
||||
BSDoptopt);
|
||||
return (BADCH);
|
||||
}
|
||||
if (*++oli != ':') { /* don't need argument */
|
||||
@ -102,7 +103,7 @@ BSDgetopt(int nargc, char *const *nargv, const char *ostr)
|
||||
if (BSDopterr)
|
||||
(void)fprintf(stderr,
|
||||
"%s: option requires an argument -- %c\n",
|
||||
__progname, BSDoptopt);
|
||||
getprogname(), BSDoptopt);
|
||||
return (BADCH);
|
||||
}
|
||||
else /* white space */
|
||||
|
Loading…
Reference in New Issue
Block a user