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
|
|
@ -392,7 +392,7 @@ static int try_config(struct hint_list *list,
|
|||
|
||||
typedef int (*next_devices_t)(snd_ctl_t *, int *);
|
||||
|
||||
static next_devices_t next_devices[] = {
|
||||
static const next_devices_t next_devices[] = {
|
||||
IFACE(CARD, NULL),
|
||||
IFACE(HWDEP, snd_ctl_hwdep_next_device),
|
||||
IFACE(MIXER, NULL),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue