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:
Diego E. 'Flameeyes' Pettenò 2008-11-21 20:26:12 +01:00
parent 8ed98db259
commit 2289326673
8 changed files with 8 additions and 8 deletions

View file

@ -381,7 +381,7 @@ static int snd_seq_hw_query_next_port(snd_seq_t *seq, snd_seq_port_info_t *info)
return 0;
}
snd_seq_ops_t snd_seq_hw_ops = {
static const snd_seq_ops_t snd_seq_hw_ops = {
.close = snd_seq_hw_close,
.nonblock = snd_seq_hw_nonblock,
.system_info = snd_seq_hw_system_info,

View file

@ -77,7 +77,7 @@ struct _snd_seq {
int mode;
int poll_fd;
void *dl_handle;
snd_seq_ops_t *ops;
const snd_seq_ops_t *ops;
void *private_data;
int client; /* client number */
/* buffers */