diff options
Diffstat (limited to 'usr.bin/aucat/sock.c')
-rw-r--r-- | usr.bin/aucat/sock.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/usr.bin/aucat/sock.c b/usr.bin/aucat/sock.c index b0cbba5bdc6..cf9b6514347 100644 --- a/usr.bin/aucat/sock.c +++ b/usr.bin/aucat/sock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sock.c,v 1.20 2009/07/25 10:52:19 ratchov Exp $ */ +/* $OpenBSD: sock.c,v 1.21 2009/08/17 15:07:49 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -716,18 +716,14 @@ void sock_midiattach(struct sock *f, unsigned mode) { struct abuf *rbuf = NULL, *wbuf = NULL; - struct aparams dummy; - memset(&dummy, 0, sizeof(dummy)); - dummy.bps = 1; - if (mode & AMSG_MIDIOUT) { - rbuf = abuf_new(3125, &dummy); + rbuf = abuf_new(3125, &aparams_none); aproc_setout(f->pipe.file.rproc, rbuf); aproc_setin(thrubox, rbuf); } if (mode & AMSG_MIDIIN) { - wbuf = abuf_new(3125, &dummy); + wbuf = abuf_new(3125, &aparams_none); aproc_setin(f->pipe.file.wproc, wbuf); aproc_setout(thrubox, wbuf); if (mode & AMSG_MIDIOUT) { |