Complete support for PROGNAME

This commit is contained in:
Pierre Pronchery 2018-01-09 05:48:17 +01:00
parent 81afb09acc
commit fd9b1af838

View File

@ -62,6 +62,12 @@
#endif
/* constants */
#ifndef PROGNAME
# define PROGNAME "mixer"
#endif
/* Mixer */
/* private */
/* types */
@ -965,7 +971,7 @@ static int _mixer_error(Mixer * mixer, char const * message, int ret)
static int _error_text(char const * message, int ret)
{
fputs(PACKAGE ": ", stderr);
fputs(PROGNAME ": ", stderr);
perror(message);
return ret;
}