mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
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>
This commit is contained in:
parent
a39fe10557
commit
8f9abdf586
5 changed files with 7 additions and 7 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue