conf: const pointers in block get functions

All config_get_block_*() functions should accept constant config_param
pointers.
This commit is contained in:
Max Kellermann
2009-01-25 16:03:49 +01:00
parent 80799fa84e
commit 5f77910097
27 changed files with 49 additions and 49 deletions

View File

@@ -43,7 +43,7 @@ static unsigned int audioOutputArraySize;
unsigned int audio_output_count(void)
{
unsigned int nr = 0;
struct config_param *param = NULL;
const struct config_param *param = NULL;
while ((param = config_get_next_param(CONF_AUDIO_OUTPUT, param)))
nr++;
@@ -55,7 +55,7 @@ unsigned int audio_output_count(void)
/* make sure initPlayerData is called before this function!! */
void initAudioDriver(void)
{
struct config_param *param = NULL;
const struct config_param *param = NULL;
unsigned int i;
notify_init(&audio_output_client_notify);
@@ -106,7 +106,7 @@ void getOutputAudioFormat(const struct audio_format *inAudioFormat,
void initAudioConfig(void)
{
struct config_param *param = config_get_param(CONF_AUDIO_OUTPUT_FORMAT);
const struct config_param *param = config_get_param(CONF_AUDIO_OUTPUT_FORMAT);
if (NULL == param || NULL == param->value)
return;