diff options
| author | Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> | 2026-08-12 22:39:29 +0200 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> | 2026-08-16 16:35:27 +0200 |
| commit | e33c5ac0d8ce64b9e08d7309ea5a3448edb3a13e (patch) | |
| tree | e7107b4a4b1822102b4372b9d4a6967b95a83a12 /monitor | |
| parent | e1212b51811bf95eaf384a9a97c481a2b888e03b (diff) | |
| download | qemu-e33c5ac0d8ce64b9e08d7309ea5a3448edb3a13e.tar.gz qemu-e33c5ac0d8ce64b9e08d7309ea5a3448edb3a13e.zip | |
monitor: Better express monitor_read()'s opaque arg is of Monitor type
monitor_read() is a IOReadHandler handler, called by
qemu_chr_fe_set_handlers() with a Monitor* opaque argument.
Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20260812211708.92824-20-philmd@oss.qualcomm.com>
Diffstat (limited to 'monitor')
| -rw-r--r-- | monitor/hmp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/monitor/hmp.c b/monitor/hmp.c index cbf7a114c0..46f8d4a6ed 100644 --- a/monitor/hmp.c +++ b/monitor/hmp.c @@ -1519,7 +1519,8 @@ cleanup: static void monitor_read(void *opaque, const uint8_t *buf, int size) { - MonitorHMP *hmp = container_of(opaque, MonitorHMP, parent_obj); + Monitor *mon = opaque; + MonitorHMP *hmp = container_of(mon, MonitorHMP, parent_obj); int i; if (hmp->rs) { |
