aubinator: rework print_help()

Graphics / Mesa 3D Graphics Library / Mesa - Emil Velikov [collabora.com] - 12 September 2016 10:49 UTC

Rather than using platform specific methods to retrieve the program name pass it explicitly. The function is called directly from main().

Similarly - basename comes in two versions POSIX (can modify string, always pass a copy) and GNU (never modifies the string).

Just printout the complete program name, esp. since the program is not meant to be installed. Thus using $basename is unlikely to work, not to mention it is misleading.

ceaa2e1 aubinator: rework print_help()
src/intel/tools/aubinator.c | 17 +++++------------
1 file changed, 5 insertions(+), 12 deletions(-)

Upstream: cgit.freedesktop.org


  • Share