Make string arrays as constant as possible.

Use "const char *const []" as type for string arrays, or convert to
"const char [][x]" when it makes sense.

Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
This commit is contained in:
Diego E. 'Flameeyes' Pettenò 2008-11-21 19:46:44 +01:00
parent 2eaf9403d2
commit fc8d8bb2e6
4 changed files with 25 additions and 25 deletions

View file

@ -1256,7 +1256,7 @@ static int is_builtin_plugin(const char *type)
return strcmp(type, "linear") == 0;
}
static const char *default_rate_plugins[] = {
static const char *const default_rate_plugins[] = {
"speexrate", "linear", NULL
};
@ -1340,7 +1340,7 @@ int snd_pcm_rate_open(snd_pcm_t **pcmp, const char *name,
#ifdef PIC
err = -ENOENT;
if (!converter) {
const char **types;
const char *const *types;
for (types = default_rate_plugins; *types; types++) {
err = rate_open_func(rate, *types);
if (!err) {