diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2015-11-22 12:01:24 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2015-11-22 12:01:24 +0000 |
commit | 7f65a787ac4a5023bff23f325cfba5890541bc8d (patch) | |
tree | 0fd623cf200087c73afe4be30893c1f7f66dc46e /lib/libsndio/mio_aucat.c | |
parent | f03acee44c3badd17aefb5d177430c9dd06fba63 (diff) |
Don't remove the type component from the device string before passing
it to the *_open() functions. It's more flexible this way. No behaviour
change.
Diffstat (limited to 'lib/libsndio/mio_aucat.c')
-rw-r--r-- | lib/libsndio/mio_aucat.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libsndio/mio_aucat.c b/lib/libsndio/mio_aucat.c index 59a20b31535..9cef7b6fa61 100644 --- a/lib/libsndio/mio_aucat.c +++ b/lib/libsndio/mio_aucat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mio_aucat.c,v 1.10 2013/11/13 22:38:22 ratchov Exp $ */ +/* $OpenBSD: mio_aucat.c,v 1.11 2015/11/22 12:01:23 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -84,15 +84,14 @@ mio_aucat_runmsg(struct mio_aucat_hdl *hdl) } struct mio_hdl * -_mio_aucat_open(const char *str, unsigned int mode, - int nbio, unsigned int type) +_mio_aucat_open(const char *str, unsigned int mode, int nbio) { struct mio_aucat_hdl *hdl; hdl = malloc(sizeof(struct mio_aucat_hdl)); if (hdl == NULL) return NULL; - if (!_aucat_open(&hdl->aucat, str, mode, type)) + if (!_aucat_open(&hdl->aucat, str, mode)) goto bad; _mio_create(&hdl->mio, &mio_aucat_ops, mode, nbio); if (!_aucat_setfl(&hdl->aucat, 1, &hdl->mio.eof)) |