Use getprogname() instead of referencing __progname.

This commit is contained in:
Xin LI 2009-06-23 23:16:00 +00:00
parent 689f1cbba5
commit 1946089b52
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=194789

View File

@ -91,16 +91,15 @@ prbits(int bits, char **strs, int n)
void
usage(void)
{
extern char *__progname;
fprintf(stderr,
"usage: %s -f device "
"[-l] [-n] [-r] [-t tablefile] [-v] [-x] name ...\n",
__progname);
getprogname());
fprintf(stderr,
" %s -f device "
"[-l] [-n] [-r] [-t tablefile] [-v] [-x] -a\n",
__progname);
getprogname());
exit(1);
}