=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/aucat/abuf.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- src/usr.bin/aucat/abuf.c 2008/10/26 08:49:43 1.7 +++ src/usr.bin/aucat/abuf.c 2008/11/03 22:25:13 1.8 @@ -1,4 +1,4 @@ -/* $OpenBSD: abuf.c,v 1.7 2008/10/26 08:49:43 ratchov Exp $ */ +/* $OpenBSD: abuf.c,v 1.8 2008/11/03 22:25:13 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov * @@ -38,6 +38,7 @@ #include #include "conf.h" +#include "aparams.h" #include "aproc.h" #include "abuf.h" @@ -63,11 +64,12 @@ #endif struct abuf * -abuf_new(unsigned nfr, unsigned bpf) +abuf_new(unsigned nfr, struct aparams *par) { struct abuf *buf; - unsigned len; + unsigned len, bpf; + bpf = aparams_bpf(par); len = nfr * bpf; buf = malloc(sizeof(struct abuf) + len); if (buf == NULL) { @@ -75,6 +77,8 @@ abort(); } buf->bpf = bpf; + buf->cmin = par->cmin; + buf->cmax = par->cmax; buf->inuse = 0; /*