aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/usbhidctl
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2009-06-23 23:16:00 +0000
committerXin LI <delphij@FreeBSD.org>2009-06-23 23:16:00 +0000
commit1946089b52e6041fcc7d60aa8ecbad332865a3e1 (patch)
tree15691c3591aac504688a0b9b7711d4c57934ed36 /usr.bin/usbhidctl
parent689f1cbba5e2d1e772641d8018e50439e616b36d (diff)
downloadsrc-1946089b52e6041fcc7d60aa8ecbad332865a3e1.tar.gz
src-1946089b52e6041fcc7d60aa8ecbad332865a3e1.zip
Use getprogname() instead of referencing __progname.
Notes
Notes: svn path=/head/; revision=194789
Diffstat (limited to 'usr.bin/usbhidctl')
-rw-r--r--usr.bin/usbhidctl/usbhid.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/usbhidctl/usbhid.c b/usr.bin/usbhidctl/usbhid.c
index 601e392bd733..485418f74064 100644
--- a/usr.bin/usbhidctl/usbhid.c
+++ b/usr.bin/usbhidctl/usbhid.c
@@ -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);
}