summaryrefslogtreecommitdiff
path: root/src/confmisc.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2004-05-04 15:11:58 +0000
committerTakashi Iwai <tiwai@suse.de>2004-05-04 15:11:58 +0000
commit253b58bc03e82968cd85ae63a6c95095e3f936f6 (patch)
tree69eaaafa2ee6d7d83c6103743d50a63a1efb6aa7 /src/confmisc.c
parent4032563aad81d608b0da671dcac35caf354721dd (diff)
avoid the compile warnings (about cast) with the recent GCC.
Diffstat (limited to 'src/confmisc.c')
-rw-r--r--src/confmisc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/confmisc.c b/src/confmisc.c
index c6fbe871..051b4758 100644
--- a/src/confmisc.c
+++ b/src/confmisc.c
@@ -865,6 +865,7 @@ int snd_func_private_pcm_subdevice(snd_config_t **dst, snd_config_t *root ATTRIB
{
snd_pcm_info_t *info;
const char *id;
+ void *data;
snd_pcm_t *pcm;
int err;
@@ -875,7 +876,8 @@ int snd_func_private_pcm_subdevice(snd_config_t **dst, snd_config_t *root ATTRIB
SNDERR("field pcm_handle not found");
return -EINVAL;
}
- err = snd_config_get_pointer(private_data, (const void **)&pcm);
+ err = snd_config_get_pointer(private_data, &data);
+ pcm = data;
if (err < 0) {
SNDERR("field pcm_handle is not a pointer");
return err;