diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2018-06-26 07:20:38 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2018-06-26 07:20:38 +0000 |
commit | b5640b499068cc03665578655d7ae66f13c8851a (patch) | |
tree | 4eeecbd4af4897055a999bc7f9b54486ef4c30b3 /usr.bin/sndiod | |
parent | 9d0c0d16f54768dac87bb972ce876424058819c7 (diff) |
Don't set slot's {slot,dev}_cmin parameters in slot_setpar() routine,
as their value doesn't change once the slot is initialized.
Diffstat (limited to 'usr.bin/sndiod')
-rw-r--r-- | usr.bin/sndiod/sock.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/sndiod/sock.c b/usr.bin/sndiod/sock.c index 62ddf228193..810045f5dcf 100644 --- a/usr.bin/sndiod/sock.c +++ b/usr.bin/sndiod/sock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sock.c,v 1.24 2018/06/26 07:15:17 ratchov Exp $ */ +/* $OpenBSD: sock.c,v 1.25 2018/06/26 07:20:37 ratchov Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org> * @@ -626,9 +626,7 @@ sock_setpar(struct sock *f) rchan = 1; else if (rchan > NCHAN_MAX) rchan = NCHAN_MAX; - s->sub.slot_cmin = s->opt->rmin; s->sub.slot_cmax = s->opt->rmin + rchan - 1; - s->sub.dev_cmin = s->opt->rmin; s->sub.dev_cmax = s->opt->rmax; #ifdef DEBUG if (log_level >= 3) { @@ -650,9 +648,7 @@ sock_setpar(struct sock *f) pchan = 1; else if (pchan > NCHAN_MAX) pchan = NCHAN_MAX; - s->mix.slot_cmin = s->opt->pmin; s->mix.slot_cmax = s->opt->pmin + pchan - 1; - s->mix.dev_cmin = s->opt->pmin; s->mix.dev_cmax = s->opt->pmax; #ifdef DEBUG if (log_level >= 3) { |