diff options
author | Arwed Meyer | 2022-09-11 20:18:37 +0200 |
---|---|---|
committer | Marc-André Lureau | 2022-09-29 12:38:05 +0200 |
commit | 8f9abdf586d48552273abe38cf55058f7d0c85fd (patch) | |
tree | dcc0fd036654a1e40fdc920e5f54da661b8b5ef3 /stubs | |
parent | msmouse: Handle mouse reset (diff) | |
download | qemu-8f9abdf586d48552273abe38cf55058f7d0c85fd.tar.gz qemu-8f9abdf586d48552273abe38cf55058f7d0c85fd.tar.xz qemu-8f9abdf586d48552273abe38cf55058f7d0c85fd.zip |
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 'stubs')
-rw-r--r-- | stubs/replay-tools.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stubs/replay-tools.c b/stubs/replay-tools.c index f2e72bb225..3e8ca3212d 100644 --- a/stubs/replay-tools.c +++ b/stubs/replay-tools.c @@ -53,7 +53,7 @@ void replay_register_char_driver(struct Chardev *chr) { } -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) { abort(); } |