diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-06-13 14:13:09 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2005-06-22 12:28:54 +0200 |
commit | b636a71d9b9525ee51ca872d461817a5bd5c39fd (patch) | |
tree | 50d7aac0bbd2f8dccd6ca0a007fd22ef874d16a9 /sound | |
parent | 16ded525389c31256bcc9fd44352ab799b60b7fc (diff) | |
download | linux-stable-b636a71d9b9525ee51ca872d461817a5bd5c39fd.tar.gz linux-stable-b636a71d9b9525ee51ca872d461817a5bd5c39fd.tar.bz2 linux-stable-b636a71d9b9525ee51ca872d461817a5bd5c39fd.zip |
[ALSA] Add const prefix
Control Midlevel
Add const prefix to snd_kcontrol_new_t pointer for better protection.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/core/control.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/control.c b/sound/core/control.c index 4e39a2103d0a..227f3cf02771 100644 --- a/sound/core/control.c +++ b/sound/core/control.c @@ -215,7 +215,7 @@ snd_kcontrol_t *snd_ctl_new(snd_kcontrol_t * control, unsigned int access) * * Returns the pointer of the newly generated instance, or NULL on failure. */ -snd_kcontrol_t *snd_ctl_new1(snd_kcontrol_new_t * ncontrol, void *private_data) +snd_kcontrol_t *snd_ctl_new1(const snd_kcontrol_new_t * ncontrol, void *private_data) { snd_kcontrol_t kctl; unsigned int access; |