HomeFreeBSD

Remove useless calls to basename().

Description

Remove useless calls to basename().

There are a couple of places in the source three where we call
basename() on constant strings. This is bad, because the prototype
standardized by POSIX allows the implementation to use its argument as a
storage buffer.

This change eliminates some of these unportable calls to basename() in
cases where it was only added for cosmetical reasons, namely to trim
argv[0]. There's nothing wrong with setting argv[0] to the full path.

Reviewed by: jilles
Differential Revision: https://reviews.freebsd.org/D6093

Details

Provenance
edAuthored on
Reviewer
jilles
Differential Revision
D6093: Remove useless calls to basename().
Parents
rS298875: [iwn] fill in the TX command rate info flags consistently.
Branches
Unknown
Tags
Unknown