aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sound/pcm
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2012-02-10 12:35:57 +0000
committerEd Schouten <ed@FreeBSD.org>2012-02-10 12:35:57 +0000
commit7870adb640dfa24455291c665ac965046e5622e9 (patch)
tree38fefd1e5bde255db2d3eab529d481ce373dec71 /sys/dev/sound/pcm
parent92858a92e005e16315da73a8ff5772ca8542def2 (diff)
downloadsrc-7870adb640dfa24455291c665ac965046e5622e9.tar.gz
src-7870adb640dfa24455291c665ac965046e5622e9.zip
Remove direct access to si_name.
Code should just use the devtoname() function to obtain the name of a character device. Also add const keywords to pieces of code that need it to build properly. MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=231378
Diffstat (limited to 'sys/dev/sound/pcm')
-rw-r--r--sys/dev/sound/pcm/mixer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/mixer.c b/sys/dev/sound/pcm/mixer.c
index 58b9326703b0..7a2433229b70 100644
--- a/sys/dev/sound/pcm/mixer.c
+++ b/sys/dev/sound/pcm/mixer.c
@@ -1463,7 +1463,7 @@ mixer_oss_mixerinfo(struct cdev *i_dev, oss_mixerinfo *mi)
*
* XXX Described by Hannu@4Front, but not found in
* soundcard.h.
- strlcpy(mi->devnode, d->mixer_dev->si_name,
+ strlcpy(mi->devnode, devtoname(d->mixer_dev),
sizeof(mi->devnode));
mi->legacy_device = i;
*/