On 07/02/2018 11:22 AM, Markus Armbruster wrote:
All callers of qmp_build_error_object() duplicate the code to wrap it
in a response object. Replace it by qmp_error_response() that
captures the duplicated code, including error_free().
Signed-off-by: Markus Armbruster
---
include/qapi/qmp/dis
All callers of qmp_build_error_object() duplicate the code to wrap it
in a response object. Replace it by qmp_error_response() that
captures the duplicated code, including error_free().
Signed-off-by: Markus Armbruster
---
include/qapi/qmp/dispatch.h | 2 +-
monitor.c | 7 +-