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:43 +02:00
parent 5ad77b9a6f
commit 2a4059ae60
2 changed files with 3 additions and 3 deletions

View File

@ -76,13 +76,13 @@ bad:
struct mio_hdl *
mio_midithru_open(const char *str, unsigned mode, int nbio)
{
return mio_xxx_open(str, "midithru", mode, nbio);
return mio_xxx_open(str, MIDICAT_PATH, mode, nbio);
}
struct mio_hdl *
mio_aucat_open(const char *str, unsigned mode, int nbio)
{
return mio_xxx_open(str, "softaudio", mode, nbio);
return mio_xxx_open(str, AUCAT_PATH, mode, nbio);
}
static void

View File

@ -149,7 +149,7 @@ sio_aucat_open(const char *str, unsigned mode, int nbio)
hdl = malloc(sizeof(struct sio_aucat_hdl));
if (hdl == NULL)
return NULL;
if (!aucat_open(&hdl->aucat, str, "softaudio", mode, nbio)) {
if (!aucat_open(&hdl->aucat, str, AUCAT_PATH, mode, nbio)) {
free(hdl);
return NULL;
}