use "aucatN" for aucat(1) socket path and "midicatN" for midicat(1),

no need to increase entropy by inventing new names.
use AUCAT_PATH and MIDICAT_PATH macros instead of hardcoded strings
This commit is contained in:
Alexandre Ratchov 2011-04-16 14:52:25 +02:00
parent 621bd84067
commit 5ad77b9a6f
2 changed files with 4 additions and 4 deletions

View File

@ -767,7 +767,7 @@ aucat_main(int argc, char **argv)
}
if (nsock > 0) {
snprintf(path, sizeof(path), "%s/%s%u", base,
DEFAULT_SOFTAUDIO, unit);
AUCAT_PATH, unit);
listen = listen_new(&listen_ops, path);
if (listen == NULL)
exit(1);
@ -1037,7 +1037,7 @@ midicat_main(int argc, char **argv)
}
if (nsock > 0) {
snprintf(path, sizeof(path), "%s/%s%u", base,
DEFAULT_MIDITHRU, unit);
MIDICAT_PATH, unit);
listen = listen_new(&listen_ops, path);
if (listen == NULL)
exit(1);

View File

@ -33,8 +33,8 @@ extern int debug_level;
/*
* socket and option names
*/
#define DEFAULT_MIDITHRU "midithru"
#define DEFAULT_SOFTAUDIO "softaudio"
#define MIDICAT_PATH "midicat"
#define AUCAT_PATH "aucat"
#define DEFAULT_OPT "default"
/*