diff options
Diffstat (limited to 'src/rawmidi')
-rw-r--r-- | src/rawmidi/rawmidi_hw.c | 2 | ||||
-rw-r--r-- | src/rawmidi/rawmidi_local.h | 2 | ||||
-rw-r--r-- | src/rawmidi/rawmidi_virt.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/rawmidi/rawmidi_hw.c b/src/rawmidi/rawmidi_hw.c index 1f08240d..87829fd7 100644 --- a/src/rawmidi/rawmidi_hw.c +++ b/src/rawmidi/rawmidi_hw.c @@ -156,7 +156,7 @@ static ssize_t snd_rawmidi_hw_read(snd_rawmidi_t *rmidi, void *buffer, size_t si return result; } -snd_rawmidi_ops_t snd_rawmidi_hw_ops = { +static const snd_rawmidi_ops_t snd_rawmidi_hw_ops = { .close = snd_rawmidi_hw_close, .nonblock = snd_rawmidi_hw_nonblock, .info = snd_rawmidi_hw_info, diff --git a/src/rawmidi/rawmidi_local.h b/src/rawmidi/rawmidi_local.h index 4918c25d..3388502c 100644 --- a/src/rawmidi/rawmidi_local.h +++ b/src/rawmidi/rawmidi_local.h @@ -43,7 +43,7 @@ struct _snd_rawmidi { snd_rawmidi_stream_t stream; int mode; int poll_fd; - snd_rawmidi_ops_t *ops; + const snd_rawmidi_ops_t *ops; void *private_data; size_t buffer_size; size_t avail_min; diff --git a/src/rawmidi/rawmidi_virt.c b/src/rawmidi/rawmidi_virt.c index a221f986..52b89849 100644 --- a/src/rawmidi/rawmidi_virt.c +++ b/src/rawmidi/rawmidi_virt.c @@ -278,7 +278,7 @@ static ssize_t snd_rawmidi_virtual_read(snd_rawmidi_t *rmidi, void *buffer, size return result; } -snd_rawmidi_ops_t snd_rawmidi_virtual_ops = { +static const snd_rawmidi_ops_t snd_rawmidi_virtual_ops = { .close = snd_rawmidi_virtual_close, .nonblock = snd_rawmidi_virtual_nonblock, .info = snd_rawmidi_virtual_info, |