]> git.proxmox.com Git - mirror_qemu.git/commit - monitor.c
monitor: Clean up handle_hmp_command() a bit
authorMarkus Armbruster <armbru@redhat.com>
Fri, 17 Feb 2017 20:38:24 +0000 (21:38 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 22 Feb 2017 18:52:17 +0000 (19:52 +0100)
commitbbf1028a0ade883cebae5faf984f0e78cb794b17
tree75b023523f03d7371b26bf6fcc4d73f74dd52e32
parentdfad9ec4e9f15344f300996ad8c6f3eaf699d195
monitor: Clean up handle_hmp_command() a bit

Leave checking qobject_type(req) to qmp_check_input_obj().  Rework
handling of json_parser_parse_err() failing without setting an error.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1487363905-9480-14-git-send-email-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
monitor.c