From 2a4059ae60e9d48fd0c7d9d1abf96bf6ffc3dca4 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Sat, 16 Apr 2011 14:52:43 +0200 Subject: [PATCH] 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 --- libsndio/mio_aucat.c | 4 ++-- libsndio/sio_aucat.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libsndio/mio_aucat.c b/libsndio/mio_aucat.c index aae354a..e747ffd 100644 --- a/libsndio/mio_aucat.c +++ b/libsndio/mio_aucat.c @@ -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 diff --git a/libsndio/sio_aucat.c b/libsndio/sio_aucat.c index 3537bed..957cbdd 100644 --- a/libsndio/sio_aucat.c +++ b/libsndio/sio_aucat.c @@ -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; }