mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Mark static tables as constant when possible.
This makes it possible to write them to .data.rel.ro or to .rodata if there is no relocation involved (arrays of character arrays). Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
This commit is contained in:
parent
fc8d8bb2e6
commit
03388ca6d3
9 changed files with 20 additions and 20 deletions
|
|
@ -234,7 +234,7 @@ static int snd_hctl_compare_mixer_priority_lookup(const char **name, const char
|
|||
|
||||
static int get_compare_weight(const snd_ctl_elem_id_t *id)
|
||||
{
|
||||
static const char *names[] = {
|
||||
static const char *const names[] = {
|
||||
"Master",
|
||||
"Hardware Master",
|
||||
"Headphone",
|
||||
|
|
@ -270,7 +270,7 @@ static int get_compare_weight(const snd_ctl_elem_id_t *id)
|
|||
"IEC958",
|
||||
NULL
|
||||
};
|
||||
static const char *names1[] = {
|
||||
static const char *const names1[] = {
|
||||
"Switch",
|
||||
"Volume",
|
||||
"Playback",
|
||||
|
|
@ -284,7 +284,7 @@ static int get_compare_weight(const snd_ctl_elem_id_t *id)
|
|||
"-",
|
||||
NULL
|
||||
};
|
||||
static const char *names2[] = {
|
||||
static const char *const names2[] = {
|
||||
"Switch",
|
||||
"Volume",
|
||||
"Bypass",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue