From 249526dace5d6f2696ed786f5a72a04a97b40252 Mon Sep 17 00:00:00 2001 From: Christos Margiolis Date: Sat, 14 Jan 2023 21:33:58 -0500 Subject: [PATCH] mixer(3): Add HEADNAME to TAILQ_HEAD declarations This allows us to use the TAILQ_PREV and TAILQ_FOREACH_REVERSE_* macros, useful for an out-of-tree consumer. Reviewed by: markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D38055 --- lib/libmixer/mixer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libmixer/mixer.h b/lib/libmixer/mixer.h index 6e77fdec421f..b47f3c68ff40 100644 --- a/lib/libmixer/mixer.h +++ b/lib/libmixer/mixer.h @@ -67,12 +67,12 @@ struct mix_dev { float right; /* right volume */ } vol; int nctl; /* number of controls */ - TAILQ_HEAD(, mix_ctl) ctls; /* control list */ + TAILQ_HEAD(mix_ctlhead, mix_ctl) ctls; /* control list */ TAILQ_ENTRY(mix_dev) devs; }; struct mixer { - TAILQ_HEAD(, mix_dev) devs; /* device list */ + TAILQ_HEAD(mix_devhead, mix_dev) devs; /* device list */ struct mix_dev *dev; /* selected device */ oss_mixerinfo mi; /* mixer info */ oss_card_info ci; /* audio card info */