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

View File

@ -63,8 +63,8 @@
/* constants */ /* constants */
#ifndef PROGNAME #ifndef PROGNAME_MIXER
# define PROGNAME "mixer" # define PROGNAME_MIXER "mixer"
#endif #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) static int _error_text(char const * message, int ret)
{ {
fputs(PROGNAME ": ", stderr); fputs(PROGNAME_MIXER ": ", stderr);
perror(message); perror(message);
return ret; return ret;
} }