=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/aucat/Attic/sock.c,v retrieving revision 1.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- src/usr.bin/aucat/Attic/sock.c 2009/07/25 10:52:19 1.20 +++ src/usr.bin/aucat/Attic/sock.c 2009/08/17 15:07:49 1.21 @@ -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 * @@ -716,18 +716,14 @@ 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) {