diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-10-17 15:05:00 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-10-19 23:13:28 +0200 |
commit | b1be65f6436f53618408d9c6fc6959054f5afed6 (patch) | |
tree | 664d1a3f87e6d78c5476e06d199ac79c34397942 /chardev/msmouse.c | |
parent | 08d45942972ada0e4d051799fb8ba1b47225a6b3 (diff) |
ui/input: Constify QemuInputHandler structure
Access to QemuInputHandlerState::handler are read-only.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <20231017131251.43708-1-philmd@linaro.org>
Diffstat (limited to 'chardev/msmouse.c')
-rw-r--r-- | chardev/msmouse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chardev/msmouse.c b/chardev/msmouse.c index ab8fe981d6..a774c397b4 100644 --- a/chardev/msmouse.c +++ b/chardev/msmouse.c @@ -171,7 +171,7 @@ static int msmouse_chr_write(struct Chardev *s, const uint8_t *buf, int len) return len; } -static QemuInputHandler msmouse_handler = { +static const QemuInputHandler msmouse_handler = { .name = "QEMU Microsoft Mouse", .mask = INPUT_EVENT_MASK_BTN | INPUT_EVENT_MASK_REL, .event = msmouse_input_event, |