Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jun 2009 23:16:01 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r194789 - head/usr.bin/usbhidctl
Message-ID:  <200906232316.n5NNG1iT094289@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Tue Jun 23 23:16:00 2009
New Revision: 194789
URL: http://svn.freebsd.org/changeset/base/194789

Log:
  Use getprogname() instead of referencing __progname.

Modified:
  head/usr.bin/usbhidctl/usbhid.c

Modified: head/usr.bin/usbhidctl/usbhid.c
==============================================================================
--- head/usr.bin/usbhidctl/usbhid.c	Tue Jun 23 23:01:05 2009	(r194788)
+++ head/usr.bin/usbhidctl/usbhid.c	Tue Jun 23 23:16:00 2009	(r194789)
@@ -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);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906232316.n5NNG1iT094289>