diff options
author | Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-11-21 19:46:44 +0100 |
---|---|---|
committer | Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-11-21 22:14:52 +0100 |
commit | fc8d8bb2e64bf79f6fe6d01de633ebe2da213eba (patch) | |
tree | 91e730a622a40c65377ea7190d7ebc2a5f5c86e6 /src/mixer | |
parent | 2eaf9403d205c71ba2008875ef42d9ae37bc3d46 (diff) | |
download | alsa-lib-fc8d8bb2e64bf79f6fe6d01de633ebe2da213eba.tar.gz |
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>
Diffstat (limited to 'src/mixer')
-rw-r--r-- | src/mixer/simple_none.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mixer/simple_none.c b/src/mixer/simple_none.c index 8d6aae84..c43871d4 100644 --- a/src/mixer/simple_none.c +++ b/src/mixer/simple_none.c @@ -89,7 +89,7 @@ typedef struct _selem_none { } str[2]; } selem_none_t; -static struct mixer_name_table { +static const struct mixer_name_table { const char *longname; const char *shortname; } name_table[] = { @@ -106,7 +106,7 @@ static struct mixer_name_table { static const char *get_short_name(const char *lname) { - struct mixer_name_table *p; + const struct mixer_name_table *p; for (p = name_table; p->longname; p++) { if (!strcmp(lname, p->longname)) return p->shortname; |