diff options
author | Max Kellermann <max@duempel.org> | 2009-01-25 16:03:49 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-25 16:03:49 +0100 |
commit | 5f7791009790dc40f2d76be310ffeab55c242ced (patch) | |
tree | 5e26d9d5f873a76fe61c6403a69ae123b0d57ad3 /src/mixer/alsa_mixer.c | |
parent | 80799fa84eb4330083e4de20b87f97beea7d6ba7 (diff) | |
download | mpd-5f7791009790dc40f2d76be310ffeab55c242ced.tar.gz mpd-5f7791009790dc40f2d76be310ffeab55c242ced.tar.xz mpd-5f7791009790dc40f2d76be310ffeab55c242ced.zip |
conf: const pointers in block get functions
All config_get_block_*() functions should accept constant config_param
pointers.
Diffstat (limited to '')
-rw-r--r-- | src/mixer/alsa_mixer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mixer/alsa_mixer.c b/src/mixer/alsa_mixer.c index 7dafd22cc..d0cfdd5a2 100644 --- a/src/mixer/alsa_mixer.c +++ b/src/mixer/alsa_mixer.c @@ -43,7 +43,7 @@ alsa_mixer_finish(struct mixer_data *data) } static void -alsa_mixer_configure(struct mixer_data *data, struct config_param *param) +alsa_mixer_configure(struct mixer_data *data, const struct config_param *param) { struct alsa_mixer *am = (struct alsa_mixer *)data; const char *value; @@ -149,7 +149,7 @@ alsa_mixer_control(struct mixer_data *data, int cmd, void *arg) struct alsa_mixer *am = (struct alsa_mixer *)data; switch (cmd) { case AC_MIXER_CONFIGURE: - alsa_mixer_configure(data, (struct config_param *)arg); + alsa_mixer_configure(data, (const struct config_param *)arg); if (am->handle) alsa_mixer_close(data); return true; |