mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -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
|
|
@ -989,7 +989,7 @@ ssize_t snd_rawmidi_read(snd_rawmidi_t *rawmidi, void *buffer, size_t size)
|
|||
|
||||
int snd_rawmidi_conf_generic_id(const char *id)
|
||||
{
|
||||
static const char *ids[] = {
|
||||
static const char ids[][8] = {
|
||||
"comment",
|
||||
"type",
|
||||
"hint",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue