mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-06 13:29:59 -05:00
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:
parent
2eaf9403d2
commit
fc8d8bb2e6
4 changed files with 25 additions and 25 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue