diff --git a/src/main.c b/src/main.c index 46964a5..4292b7b 100644 --- a/src/main.c +++ b/src/main.c @@ -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; } diff --git a/src/mixer.c b/src/mixer.c index e3bc114..15920cd 100644 --- a/src/mixer.c +++ b/src/mixer.c @@ -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; }