aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desiredata/src/s_midi_oss.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/desiredata/src/s_midi_oss.c b/desiredata/src/s_midi_oss.c
index 1cfeae7c..f4a7cce1 100644
--- a/desiredata/src/s_midi_oss.c
+++ b/desiredata/src/s_midi_oss.c
@@ -152,13 +152,10 @@ void sys_poll_midi() {
}
}
#else
-/* this version uses the asynchronous "read()" ... */
void sys_poll_midi() {
int throttle = 100;
- struct timeval timout;
- int did = 1, maxfd = 0;
+ int did = 1;
while (did) {
- fd_set readset, writeset, exceptset;
did = 0;
if (throttle-- < 0) break;
for (int i=0; i<oss_nmidiin; i++) {