util: removed usage of external '__progname' because it is not portable
commit3de5b8fb427f63bb822234a4712d52d876f352da
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 25 Oct 2014 22:31:42 +0000 (26 00:31 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 2 Nov 2014 12:08:59 +0000 (2 13:08 +0100)
tree54d40b1149e5a356d69d703c7c98fc9ba22c01d2
parentff8fc10a65108ec384f754e5182d1cfedfe9c5c5
util: removed usage of external '__progname' because it is not portable

As reported by Milan Čermák, using this variable breaks compilation on
Solaris, because it is a hack which is not standard. To ensure portability,
we now rely on main's argv[0] which is always available.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
12 files changed:
util/convertfonts.c
util/geticonset.c
util/getstyle.c
util/seticons.c
util/setstyle.c
util/wdread.c
util/wdwrite.c
util/wmgenmenu.c
util/wmmenugen.c
util/wmsetbg.c
util/wxcopy.c
util/wxpaste.c