diff options
Diffstat (limited to 'usr.bin/aucat/aucat.c')
-rw-r--r-- | usr.bin/aucat/aucat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/aucat/aucat.c b/usr.bin/aucat/aucat.c index 88d91d2534f..a2c9c90e345 100644 --- a/usr.bin/aucat/aucat.c +++ b/usr.bin/aucat/aucat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aucat.c,v 1.105 2010/09/08 22:07:26 deraadt Exp $ */ +/* $OpenBSD: aucat.c,v 1.106 2010/10/21 18:57:42 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -691,7 +691,7 @@ aucat_main(int argc, char **argv) if (n_flag) { d = dev_new_loop(&cd->ipar, &cd->opar, cd->bufsz); } else { - d = dev_new_sio(cd->path, cd->mode, + d = dev_new_sio(cd->path, cd->mode | MODE_MIDIMASK, &cd->ipar, &cd->opar, cd->bufsz, cd->round, cd->hold); } @@ -744,7 +744,7 @@ aucat_main(int argc, char **argv) SLIST_REMOVE_HEAD(&cd->opts, entry); opt_new(cs->path, d, &cs->opar, &cs->ipar, MIDI_TO_ADATA(cs->vol), cs->mmc, - cs->join, cs->mode); + cs->join, cs->mode | MODE_MIDIMASK); free(cs); } free(cd); @@ -1018,7 +1018,7 @@ midicat_main(int argc, char **argv) while (!SLIST_EMPTY(&cd->opts)) { cs = SLIST_FIRST(&cd->opts); SLIST_REMOVE_HEAD(&cd->opts, entry); - opt_new(cs->path, d, NULL, NULL, 0, 0, 0, 0); + opt_new(cs->path, d, NULL, NULL, 0, 0, 0, MODE_MIDIMASK); free(cs); } free(cd); |