scanner: Fix reported executable name to 'wayland-scanner'
authorBryce Harrington <bryce@osg.samsung.com>
Mon, 6 Jun 2016 17:58:56 +0000 (10:58 -0700)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 7 Jun 2016 13:02:19 +0000 (16:02 +0300)
commit36aeaf037b11a8c5cd421cd013cf634838f5653c
tree53c4cc674b3c5df97c6da77a4d1e31c0083523d8
parentd588efcbc8153c01b61c7056a0171ac5cddd5103
scanner: Fix reported executable name to 'wayland-scanner'

'wayland-scanner -v' (correctly) reports the program as named
"wayland-scanner", but 'wayland-scanner -h' was inconsistent, referring
to it as './scanner'.

Also refactor this and other references to the program name to use a
common #define, PROGRAM_NAME.

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Jonas Ã…dahl <jadahl@gmail.com>
Reviewed-by: Yong Bakos <ybakos@humanoriented.com>
Tested-by: Yong Bakos <ybakos@humanoriented.com>
src/scanner.c