mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
fix warnings (bug #829)
This commit is contained in:
parent
3d1fa92490
commit
9bae1c874f
1 changed files with 2 additions and 2 deletions
|
|
@ -875,7 +875,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;
|
||||
const void *data;
|
||||
snd_pcm_t *pcm;
|
||||
int err;
|
||||
|
||||
|
|
@ -887,7 +887,7 @@ int snd_func_private_pcm_subdevice(snd_config_t **dst, snd_config_t *root ATTRIB
|
|||
return -EINVAL;
|
||||
}
|
||||
err = snd_config_get_pointer(private_data, &data);
|
||||
pcm = data;
|
||||
pcm = (snd_pcm_t *)data;
|
||||
if (err < 0) {
|
||||
SNDERR("field pcm_handle is not a pointer");
|
||||
return err;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue