svn commit: r194789 - head/usr.bin/usbhidctl

Xin LI delphij at delphij.net
Thu Jun 25 17:44:23 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi, Bruce,

Bruce Evans wrote:
> On Tue, 23 Jun 2009, Xin LI wrote:
> 
>> Log:
>>  Use getprogname() instead of referencing __progname.
> 
> Neither is permitted in FreeBSD in usage().

I didn't see references about this?  If this is discouraged, perhaps we
should mention it in style(9) or somewhere.  It looks like that a lot of
programs are using (not necessarily from NetBSD), but also others.  Do
we have some discussion in the past regarding this?

>> Modified:
>>  head/usr.bin/usbhidctl/usbhid.c
> 
> This was obtained from NetBSD, which requires using getprogname() in
> usage().

This is purely coincidence...  I didn't even looked at NetBSD code in
this case, otherwise I would have brought the TNF copyright changes,
etc. altogether.

Cheers,
- --
Xin LI <delphij at delphij.net>	http://www.delphij.net/
FreeBSD - The Power to Serve!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (FreeBSD)

iEYEARECAAYFAkpDtycACgkQi+vbBBjt66A8awCggrT1H1PcbRXdTuKGs9S2Bgd+
v1YAn3XibpzEdWruW7voxhZtd+5qBRmC
=uf+j
-----END PGP SIGNATURE-----


More information about the svn-src-head mailing list