summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libsndio/mio.c17
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) &&