summaryrefslogtreecommitdiffstats
path: root/compat_progname.c
Commit message (Collapse)AuthorAgeFilesLines
* Only compile compat_*.c implementations that are actually needed.Ingo Schwarze2020-06-151-13/+2
| | | | | That's cleaner and it is supposed to fix compiler warnings with gcc 10 reported by Wynn Wolf Arbor <wolf at oriole dot systems> on discuss@.
* Use getprogname(3) rather than __progname.Ingo Schwarze2015-11-061-0/+42
Suggested by Joerg@ Sonnenberger (NetBSD). Last year, deraadt@ confirmed on tech@ that this "has the potential to be more portable", and micro-optimizing for speed is not relevant here. Also gets rid of one global variable.