diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2009-07-26 13:10:06 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2009-07-26 13:10:06 +0000 |
commit | 79d4bd393a24c415e07283e7f264ab50018b776b (patch) | |
tree | 388916b60473800d1cd63883139c82c46966e9ab /lib | |
parent | 2911b3f64e9bb73d342a4c8c5f0999c2ddba79cb (diff) |
remove the (bogus) special case when mio_open() is called with
a midi device name starting with a separator
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libsndio/mio.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/lib/libsndio/mio.c b/lib/libsndio/mio.c index 4e5a53b329b..6064981eb6f 100644 --- a/lib/libsndio/mio.c +++ b/lib/libsndio/mio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mio.c,v 1.3 2009/07/26 12:38:20 ratchov Exp $ */ +/* $OpenBSD: mio.c,v 1.4 2009/07/26 13:10:05 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -77,21 +77,6 @@ mio_open(const char *str, unsigned mode, int nbio) snprintf(buf, sizeof(buf), "%u", minor(sb.st_rdev)); return mio_open_rmidi(buf, mode, nbio); } - if (sep == str) { - /* - * legacy "/dev/rmidixxx" device name - */ - if (stat(str, &sb) < 0) { - DPERROR("mio_open: stat"); - return NULL; - } - if (!S_ISCHR(sb.st_mode)) { - DPRINTF("mio_open: %s: not a char dev\n", str); - return NULL; - } - snprintf(buf, sizeof(buf), "%u", minor(sb.st_rdev)); - return mio_open_rmidi(buf, mode, nbio); - } len = sep - str; if (len == strlen(prefix_midithru) && |