diff options
author | Ed Schouten <ed@FreeBSD.org> | 2012-02-10 12:35:57 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2012-02-10 12:35:57 +0000 |
commit | 7870adb640dfa24455291c665ac965046e5622e9 (patch) | |
tree | 38fefd1e5bde255db2d3eab529d481ce373dec71 /sys/dev/sound/pcm | |
parent | 92858a92e005e16315da73a8ff5772ca8542def2 (diff) | |
download | src-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.c | 2 |
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; */ |