Use PROGNAME_MIXER for mixer(1)

This commit is contained in:
Pierre Pronchery 2018-02-05 13:14:50 +01:00
parent 5dc9506911
commit 49ed755309
2 changed files with 7 additions and 7 deletions

View File

@ -39,8 +39,8 @@
/* constants */
#ifndef PROGNAME
# define PROGNAME "mixer"
#ifndef PROGNAME_MIXER
# define PROGNAME_MIXER "mixer"
#endif
#ifndef PREFIX
# define PREFIX "/usr/local"
@ -77,7 +77,7 @@ static int _mixer(char const * device, MixerLayout layout, gboolean embedded)
/* error */
static int _error(char const * message, int ret)
{
fputs(PROGNAME ": ", stderr);
fputs(PROGNAME_MIXER ": ", stderr);
perror(message);
return ret;
}
@ -91,7 +91,7 @@ static int _usage(void)
" -T Show the classes in separate tabs\n"
" -V Show the classes on top of each other\n"
" -d The mixer device to use\n"
" -x Enable embedded mode\n"), PROGNAME);
" -x Enable embedded mode\n"), PROGNAME_MIXER);
return 1;
}

View File

@ -63,8 +63,8 @@
/* constants */
#ifndef PROGNAME
# define PROGNAME "mixer"
#ifndef PROGNAME_MIXER
# define PROGNAME_MIXER "mixer"
#endif
@ -973,7 +973,7 @@ static int _mixer_error(Mixer * mixer, char const * message, int ret)
static int _error_text(char const * message, int ret)
{
fputs(PROGNAME ": ", stderr);
fputs(PROGNAME_MIXER ": ", stderr);
perror(message);
return ret;
}