aboutsummaryrefslogtreecommitdiff
path: root/audio/wavcapture.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2020-05-05 15:25:58 +0200
committerGerd Hoffmann <kraxel@redhat.com>2020-05-26 08:29:39 +0200
commit57a878ed4f76a3a6b06dd8fa7df846adad6633ac (patch)
tree0b18c7211b7d3b9714f325e4cd5daaa7b09754c5 /audio/wavcapture.c
parente709d2ac47e71a879294f20e3fb994b7aea55226 (diff)
downloadqemu-57a878ed4f76a3a6b06dd8fa7df846adad6633ac.zip
qemu-57a878ed4f76a3a6b06dd8fa7df846adad6633ac.tar.gz
qemu-57a878ed4f76a3a6b06dd8fa7df846adad6633ac.tar.bz2
audio: Let capture_callback handler use const buffer argument
The buffer is the captured input to pass to backends. As we should not modify it, mark the argument const. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20200505132603.8575-3-f4bug@amsat.org> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'audio/wavcapture.c')
-rw-r--r--audio/wavcapture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/wavcapture.c b/audio/wavcapture.c
index 8d7ce2e..17e87ed 100644
--- a/audio/wavcapture.c
+++ b/audio/wavcapture.c
@@ -71,7 +71,7 @@ static void wav_destroy (void *opaque)
g_free (wav->path);
}
-static void wav_capture (void *opaque, void *buf, int size)
+static void wav_capture(void *opaque, const void *buf, int size)
{
WAVState *wav = opaque;