mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
chardev/mux: convert size members to unsigned int
There is no sense to keep `focus`, `mux_cnt`, `prod`, `cons` and `tag` variables as signed, those represent either size, either position in array, which both are unsigned. `focus` member of `MuxChardev` is kept signed, because initially set to -1. Signed-off-by: Roman Penyaev <r.peniaev@gmail.com> Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com> Cc: qemu-devel@nongnu.org Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-ID: <20241014152408.427700-5-r.peniaev@gmail.com>
This commit is contained in:
parent
1ba399406a
commit
c64f0bc1ce
4 changed files with 11 additions and 11 deletions
|
@ -191,7 +191,7 @@ bool qemu_chr_fe_backend_open(CharBackend *be)
|
|||
|
||||
bool qemu_chr_fe_init(CharBackend *b, Chardev *s, Error **errp)
|
||||
{
|
||||
int tag = 0;
|
||||
unsigned int tag = 0;
|
||||
|
||||
if (s) {
|
||||
if (CHARDEV_IS_MUX(s)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue