int snd_user_file(const char *file, char **result);
-#ifndef _POSIC_C_SOURCE
+#ifndef _POSIX_C_SOURCE
struct timeval {
time_t tv_sec; /* seconds */
long tv_usec; /* microseconds */
{
int64_t xmin, xmax, xstep;
ret = ext->callback->get_integer64_info(ext, key,
- &xmin,
- &xmax,
- &xstep);
+ (int64_t *)&xmin,
+ (int64_t *)&xmax,
+ (int64_t *)&xstep);
info->value.integer64.min = xmin;
info->value.integer64.max = xmax;
info->value.integer64.step = xstep;
case SND_CTL_ELEM_TYPE_INTEGER64:
if (! ext->callback->write_integer64)
goto err;
- ret = ext->callback->write_integer64(ext, key, control->value.integer64.value);
+ ret = ext->callback->write_integer64(ext, key, (int64_t *)control->value.integer64.value);
break;
case SND_CTL_ELEM_TYPE_ENUMERATED:
if (! ext->callback->write_enumerated)
/*
* open a slave PCM as secondary client (dup'ed fd)
*/
-int snd_pcm_direct_initialize_secondary_slave(snd_pcm_direct_t *dmix, snd_pcm_t *spcm, struct slave_params *params)
+int snd_pcm_direct_initialize_secondary_slave(snd_pcm_direct_t *dmix,
+ snd_pcm_t *spcm,
+ struct slave_params *params ATTRIBUTE_UNUSED)
{
int ret;
snd_config_t *type = NULL, *args = NULL;
snd_config_iterator_t i, next;
int (*install_func)(snd_pcm_t *pcm, snd_config_t *args) = NULL;
- void *h;
+ void *h = NULL;
if (snd_config_get_type(conf) != SND_CONFIG_TYPE_COMPOUND) {
SNDERR("Invalid hook definition");
return -EINVAL;
int (*open_func)(snd_pcm_t *, const char *,
snd_config_t *, snd_config_t *) = NULL;
snd_pcm_meter_t *meter = pcm->private_data;
- void *h;
+ void *h = NULL;
int err;
if (snd_config_get_type(conf) != SND_CONFIG_TYPE_COMPOUND) {