Use getprogname() instead of referencing __progname.

This commit is contained in:
delphij 2009-06-23 23:16:00 +00:00
parent 3e00d0029a
commit e37dfd03ba

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);
}