aboutsummaryrefslogtreecommitdiff
path: root/replay
diff options
context:
space:
mode:
authorArwed Meyer <arwed.meyer@gmx.de>2022-09-11 20:18:37 +0200
committerMarc-André Lureau <marcandre.lureau@redhat.com>2022-09-29 14:38:05 +0400
commit8f9abdf586d48552273abe38cf55058f7d0c85fd (patch)
treedcc0fd036654a1e40fdc920e5f54da661b8b5ef3 /replay
parenta39fe10557462648b8bee7aec5e24aad75ebd32d (diff)
chardev: src buffer const for write functions
Make source buffers const for char be write functions. This allows using buffers returned by fifo as buf parameter and source buffer should not be changed by write functions anyway. Signed-off-by: Arwed Meyer <arwed.meyer@gmx.de> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20220911181840.8933-3-arwed.meyer@gmx.de>
Diffstat (limited to 'replay')
-rw-r--r--replay/replay-char.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/replay/replay-char.c b/replay/replay-char.c
index d2025948cf..a31aded032 100644
--- a/replay/replay-char.c
+++ b/replay/replay-char.c
@@ -48,7 +48,7 @@ void replay_register_char_driver(Chardev *chr)
char_drivers[drivers_count++] = chr;
}
-void replay_chr_be_write(Chardev *s, uint8_t *buf, int len)
+void replay_chr_be_write(Chardev *s, const uint8_t *buf, int len)
{
CharEvent *event = g_new0(CharEvent, 1);