=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sndiod/midi.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- src/usr.bin/sndiod/midi.c 2015/11/25 18:47:12 1.14 +++ src/usr.bin/sndiod/midi.c 2016/01/08 16:17:31 1.15 @@ -1,4 +1,4 @@ -/* $OpenBSD: midi.c,v 1.14 2015/11/25 18:47:12 ratchov Exp $ */ +/* $OpenBSD: midi.c,v 1.15 2016/01/08 16:17:31 ratchov Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov * @@ -249,7 +249,7 @@ } /* - * in the worst case output message is twice the + * in the worst case output message is twice the * input message (2-byte messages with running status) */ tickets = maxavail / 2 - iep->tickets; @@ -332,14 +332,14 @@ * store the given message in the output buffer */ void -midi_out(struct midi *oep, unsigned char *idata, int icount) +midi_out(struct midi *oep, unsigned char *idata, int icount) { unsigned char *odata; int ocount; #ifdef DEBUG int i; #endif - + while (icount > 0) { if (oep->obuf.used == oep->obuf.len) { #ifdef DEBUG @@ -531,9 +531,9 @@ panic(); } #endif - c->state = PORT_CFG; + c->state = PORT_CFG; port_mio_close(c); - + for (i = 0; i < MIDI_NEP; i++) { ep = midi_ep + i; if ((ep->txmask & c->midi->self) ||