summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/monitor.c b/monitor.c
index 6cb1c38fb7..893040a174 100644
--- a/monitor.c
+++ b/monitor.c
@@ -2455,8 +2455,7 @@ void monitor_init(CharDriverState *hd, int show_banner)
monitor_hd = hd;
hide_banner = !show_banner;
- qemu_chr_add_read_handler(hd, term_can_read, term_read, NULL);
- qemu_chr_add_event_handler(hd, term_event);
+ qemu_chr_add_handlers(hd, term_can_read, term_read, term_event, NULL);
}
/* XXX: use threads ? */