summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/mixerctl/mixerctl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/mixerctl/mixerctl.c b/usr.bin/mixerctl/mixerctl.c
index a10b8d47e62..8f38555b197 100644
--- a/usr.bin/mixerctl/mixerctl.c
+++ b/usr.bin/mixerctl/mixerctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mixerctl.c,v 1.26 2007/11/26 13:36:34 deraadt Exp $ */
+/* $OpenBSD: mixerctl.c,v 1.27 2008/01/13 21:26:01 ratchov Exp $ */
/* $NetBSD: mixerctl.c,v 1.11 1998/04/27 16:55:23 augustss Exp $ */
/*
@@ -341,14 +341,13 @@ main(int argc, char **argv)
for (j = i = 0; i < ndev; i++) {
if (infos[i].type != AUDIO_MIXER_CLASS &&
- infos[i].type != -1) {
+ infos[i].prev == AUDIO_MIXER_LAST) {
fields[j++] = rfields[i];
for (pos = infos[i].next; pos != AUDIO_MIXER_LAST;
pos = infos[pos].next) {
fields[j] = rfields[pos];
catstr(rfields[i].name, infos[pos].label.name,
fields[j].name);
- infos[pos].type = -1;
j++;
}
}