mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05: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
|
|
@ -217,7 +217,7 @@ int snd_mixer_selem_has_common_switch(snd_mixer_elem_t *elem)
|
|||
*/
|
||||
const char *snd_mixer_selem_channel_name(snd_mixer_selem_channel_id_t channel)
|
||||
{
|
||||
static const char *array[SND_MIXER_SCHN_LAST + 1] = {
|
||||
static const char *const array[SND_MIXER_SCHN_LAST + 1] = {
|
||||
[SND_MIXER_SCHN_FRONT_LEFT] = "Front Left",
|
||||
[SND_MIXER_SCHN_FRONT_RIGHT] = "Front Right",
|
||||
[SND_MIXER_SCHN_REAR_LEFT] = "Rear Left",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue