mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
Make seq, rawmidi and control operation structures static const.
Since they are never changed it does not make sense to have them in the writeable .data section, just make sure to add const to the ops member in the structure definitions so that there are no extra warnings added. Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
This commit is contained in:
parent
8ed98db259
commit
2289326673
8 changed files with 8 additions and 8 deletions
|
|
@ -397,7 +397,7 @@ static int snd_ctl_shm_read(snd_ctl_t *ctl, snd_ctl_event_t *event)
|
|||
return err;
|
||||
}
|
||||
|
||||
snd_ctl_ops_t snd_ctl_shm_ops = {
|
||||
static const snd_ctl_ops_t snd_ctl_shm_ops = {
|
||||
.close = snd_ctl_shm_close,
|
||||
.nonblock = snd_ctl_shm_nonblock,
|
||||
.async = snd_ctl_shm_async,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue