aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorVolker Rümelin <vr_qemu@t-online.de>2022-10-22 16:12:04 +0200
committerLaurent Vivier <laurent@vivier.eu>2022-10-24 13:42:52 +0200
commitcf6280b99b42630d74c197fb2cd68d1a5d8673f7 (patch)
tree178a226250e9a6f9e0686645c6b7341d51bd2b6e /ui
parentc1dadb8462ff5021218f2c1aa015594952f441ca (diff)
downloadqemu-cf6280b99b42630d74c197fb2cd68d1a5d8673f7.zip
qemu-cf6280b99b42630d74c197fb2cd68d1a5d8673f7.tar.gz
qemu-cf6280b99b42630d74c197fb2cd68d1a5d8673f7.tar.bz2
ui: remove useless typecasts
Commit 8f9abdf586 ("chardev: src buffer const for write functions") changed the type of the second parameter of qemu_chr_be_write() from uint8_t * to const uint8_t *. Remove the now useless type casts from qemu_chr_be_write() function calls in ui/console.c and ui/gtk.c. Cc: qemu-trivial@nongnu.org Signed-off-by: Volker Rümelin <vr_qemu@t-online.de> Reviewed-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Claudio Fontana <cfontana@suse.de> Message-Id: <20221022141204.29358-1-vr_qemu@t-online.de> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'ui')
-rw-r--r--ui/console.c2
-rw-r--r--ui/gtk.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ui/console.c b/ui/console.c
index 49da6a9..65c1178 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -1297,7 +1297,7 @@ static void kbd_send_chars(QemuConsole *s)
uint32_t size;
buf = fifo8_pop_buf(&s->out_fifo, MIN(len, avail), &size);
- qemu_chr_be_write(s->chr, (uint8_t *)buf, size);
+ qemu_chr_be_write(s->chr, buf, size);
len = qemu_chr_be_can_write(s->chr);
avail -= size;
}
diff --git a/ui/gtk.c b/ui/gtk.c
index 92daaa6..7ec21f7 100644
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -1763,7 +1763,7 @@ static void gd_vc_send_chars(VirtualConsole *vc)
uint32_t size;
buf = fifo8_pop_buf(&vc->vte.out_fifo, MIN(len, avail), &size);
- qemu_chr_be_write(vc->vte.chr, (uint8_t *)buf, size);
+ qemu_chr_be_write(vc->vte.chr, buf, size);
len = qemu_chr_be_can_write(vc->vte.chr);
avail -= size;
}