diff options
author | antoine <antoine@FreeBSD.org> | 2009-12-28 22:56:30 +0000 |
---|---|---|
committer | antoine <antoine@FreeBSD.org> | 2009-12-28 22:56:30 +0000 |
commit | bfd388c026e6aeb5427df50347b59d62feb3072e (patch) | |
tree | 368556d68241b943dc9c2ec710bd21f97a0e608d /sys/dev/sound | |
parent | 2414a09002c0b7080b6044e995d127de758f3e12 (diff) | |
download | FreeBSD-src-bfd388c026e6aeb5427df50347b59d62feb3072e.zip FreeBSD-src-bfd388c026e6aeb5427df50347b59d62feb3072e.tar.gz |
(S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.
Fix some wrong usages.
Note: this does not affect generated binaries as this argument is not used.
PR: 137213
Submitted by: Eygene Ryabinkin (initial version)
MFC after: 1 month
Diffstat (limited to 'sys/dev/sound')
-rw-r--r-- | sys/dev/sound/pcm/channel.c | 2 | ||||
-rw-r--r-- | sys/dev/sound/pcm/sndstat.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sound/pcm/channel.c b/sys/dev/sound/pcm/channel.c index 42ea86f..ec7cb98 100644 --- a/sys/dev/sound/pcm/channel.c +++ b/sys/dev/sound/pcm/channel.c @@ -220,7 +220,7 @@ MTX_SYSINIT(pcm_syncgroup, &snd_pcm_syncgroups_mtx, "PCM channel sync group lock * * See SNDCTL_DSP_SYNCGROUP for more information. */ -struct pcm_synclist snd_pcm_syncgroups = SLIST_HEAD_INITIALIZER(head); +struct pcm_synclist snd_pcm_syncgroups = SLIST_HEAD_INITIALIZER(snd_pcm_syncgroups); static void chn_lockinit(struct pcm_channel *c, int dir) diff --git a/sys/dev/sound/pcm/sndstat.c b/sys/dev/sound/pcm/sndstat.c index 6d35803..293c777 100644 --- a/sys/dev/sound/pcm/sndstat.c +++ b/sys/dev/sound/pcm/sndstat.c @@ -79,7 +79,7 @@ static int sndstat_files = 0; } \ } while (0) -static SLIST_HEAD(, sndstat_entry) sndstat_devlist = SLIST_HEAD_INITIALIZER(none); +static SLIST_HEAD(, sndstat_entry) sndstat_devlist = SLIST_HEAD_INITIALIZER(sndstat_devlist); int snd_verbose = 1; TUNABLE_INT("hw.snd.verbose", &snd_verbose); |