mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
util/fifo8: Rename fifo8_pop_buf() -> fifo8_pop_bufptr()
Since fifo8_pop_buf() return a const buffer (which points directly into the FIFO backing store). Rename it using the 'bufptr' suffix to better reflect that it is a pointer to the internal buffer that is being returned. This will help differentiate with methods *copying* the FIFO data. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Message-Id: <20240722160745.67904-6-philmd@linaro.org>
This commit is contained in:
parent
06a16e7ba9
commit
06252bf512
8 changed files with 15 additions and 16 deletions
2
ui/gtk.c
2
ui/gtk.c
|
@ -1820,7 +1820,7 @@ static void gd_vc_send_chars(VirtualConsole *vc)
|
|||
const uint8_t *buf;
|
||||
uint32_t size;
|
||||
|
||||
buf = fifo8_pop_buf(&vc->vte.out_fifo, MIN(len, avail), &size);
|
||||
buf = fifo8_pop_bufptr(&vc->vte.out_fifo, MIN(len, avail), &size);
|
||||
qemu_chr_be_write(vc->vte.chr, buf, size);
|
||||
len = qemu_chr_be_can_write(vc->vte.chr);
|
||||
avail -= size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue