diff options
author | delphij <delphij@FreeBSD.org> | 2009-06-23 23:16:00 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2009-06-23 23:16:00 +0000 |
commit | e37dfd03ba75615a12a749fd777bab4257e0ab69 (patch) | |
tree | 15691c3591aac504688a0b9b7711d4c57934ed36 | |
parent | 3e00d0029ad8885cc6209293016ac09f816415ec (diff) | |
download | FreeBSD-src-e37dfd03ba75615a12a749fd777bab4257e0ab69.zip FreeBSD-src-e37dfd03ba75615a12a749fd777bab4257e0ab69.tar.gz |
Use getprogname() instead of referencing __progname.
-rw-r--r-- | usr.bin/usbhidctl/usbhid.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/usbhidctl/usbhid.c b/usr.bin/usbhidctl/usbhid.c index 601e392..485418f 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); } |