From 1946089b52e6041fcc7d60aa8ecbad332865a3e1 Mon Sep 17 00:00:00 2001 From: Xin LI Date: Tue, 23 Jun 2009 23:16:00 +0000 Subject: [PATCH] Use getprogname() instead of referencing __progname. --- usr.bin/usbhidctl/usbhid.c | 5 ++--- 1 file 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); }