From 73dd8832bc1cbc12049a42aa7a77a9ddbe7056fd Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 3 Sep 2008 20:06:22 +0200 Subject: Add const to our snd_pcm_ioplug_callback_t instances The fields are constant so let's declare that they actually are. --- pulse/pcm_pulse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pulse/pcm_pulse.c b/pulse/pcm_pulse.c index 7cffc89..87fce3b 100644 --- a/pulse/pcm_pulse.c +++ b/pulse/pcm_pulse.c @@ -689,7 +689,7 @@ static int pulse_close(snd_pcm_ioplug_t * io) return 0; } -static snd_pcm_ioplug_callback_t pulse_playback_callback = { +static const snd_pcm_ioplug_callback_t pulse_playback_callback = { .start = pulse_start, .stop = pulse_stop, .drain = pulse_drain, @@ -705,7 +705,7 @@ static snd_pcm_ioplug_callback_t pulse_playback_callback = { }; -static snd_pcm_ioplug_callback_t pulse_capture_callback = { +static const snd_pcm_ioplug_callback_t pulse_capture_callback = { .start = pulse_start, .stop = pulse_stop, .pointer = pulse_pointer, -- cgit