From 31ff77deb3c81ac6f972b05801983ab0108737f7 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Sat, 16 Apr 2011 11:51:49 +0000 Subject: for unix domain socket addresses use AUCAT_PATH and MIDICAT_PATH macros instead of hardcoded strings. No object change --- lib/libsndio/mio_aucat.c | 6 +++--- lib/libsndio/sio_aucat.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/libsndio/mio_aucat.c b/lib/libsndio/mio_aucat.c index 25d825453e2..498849d2d4e 100644 --- a/lib/libsndio/mio_aucat.c +++ b/lib/libsndio/mio_aucat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mio_aucat.c,v 1.2 2011/04/16 10:52:22 ratchov Exp $ */ +/* $OpenBSD: mio_aucat.c,v 1.3 2011/04/16 11:51:47 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov * @@ -73,13 +73,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/lib/libsndio/sio_aucat.c b/lib/libsndio/sio_aucat.c index 42e86a0727e..83b73bd8545 100644 --- a/lib/libsndio/sio_aucat.c +++ b/lib/libsndio/sio_aucat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sio_aucat.c,v 1.3 2011/04/16 11:24:18 ratchov Exp $ */ +/* $OpenBSD: sio_aucat.c,v 1.4 2011/04/16 11:51:47 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov * @@ -146,7 +146,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; } -- cgit v1.2.3