summaryrefslogtreecommitdiff
path: root/usr.bin/aucat/dev.c
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2012-05-23 19:14:03 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2012-05-23 19:14:03 +0000
commitebcb7726ac2319dfe59a19fa006593db5f892fea (patch)
treef0fb33c2bf673ac4725a222b2131b47255bdcccd /usr.bin/aucat/dev.c
parente1f7b819113752a8816b13b37c766ae98647d9fc (diff)
Fix duplicate mixer knob names
Diffstat (limited to 'usr.bin/aucat/dev.c')
-rw-r--r--usr.bin/aucat/dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/aucat/dev.c b/usr.bin/aucat/dev.c
index 5794ce21585..47076b1ca85 100644
--- a/usr.bin/aucat/dev.c
+++ b/usr.bin/aucat/dev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dev.c,v 1.79 2012/04/11 06:05:43 ratchov Exp $ */
+/* $OpenBSD: dev.c,v 1.80 2012/05/23 19:14:02 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -1350,7 +1350,7 @@ dev_mkslot(struct dev *d, char *who)
if (slot->ops == NULL)
continue;
if (strcmp(slot->name, name) == 0)
- umap |= (1 << i);
+ umap |= (1 << slot->unit);
}
for (unit = 0; ; unit++) {
if (unit == CTL_NSLOT) {