aboutsummaryrefslogtreecommitdiff
path: root/include/sysemu/replay.h
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 /include/sysemu/replay.h
parenta39fe10557462648b8bee7aec5e24aad75ebd32d (diff)
downloadqemu-8f9abdf586d48552273abe38cf55058f7d0c85fd.zip
qemu-8f9abdf586d48552273abe38cf55058f7d0c85fd.tar.gz
qemu-8f9abdf586d48552273abe38cf55058f7d0c85fd.tar.bz2
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 'include/sysemu/replay.h')
-rw-r--r--include/sysemu/replay.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sysemu/replay.h b/include/sysemu/replay.h
index 73dee9c..7ec0882 100644
--- a/include/sysemu/replay.h
+++ b/include/sysemu/replay.h
@@ -198,7 +198,7 @@ uint64_t blkreplay_next_id(void);
/*! Registers char driver to save it's events */
void replay_register_char_driver(struct Chardev *chr);
/*! Saves write to char device event to the log */
-void replay_chr_be_write(struct Chardev *s, uint8_t *buf, int len);
+void replay_chr_be_write(struct Chardev *s, const uint8_t *buf, int len);
/*! Writes char write return value to the replay log. */
void replay_char_write_event_save(int res, int offset);
/*! Reads char write return value from the replay log. */