From: Anthony PERARD Date: Fri, 25 May 2018 15:18:45 +0000 (+0100) Subject: libxl_qmp: Simplify qmp_response_type() prototype X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~3433 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a0816c2006d246ea55c8e53377d54cecf1089b04;p=xen.git libxl_qmp: Simplify qmp_response_type() prototype Remove the libxl__qmp_handler* argument so the function can be reused later in a different context. Signed-off-by: Anthony PERARD Acked-by: Ian Jackson Reviewed-by: Roger Pau Monné Acked-by: Wei Liu --- diff --git a/tools/libxl/libxl_qmp.c b/tools/libxl/libxl_qmp.c index c5e05e5679..b2b55b4853 100644 --- a/tools/libxl/libxl_qmp.c +++ b/tools/libxl/libxl_qmp.c @@ -273,8 +273,7 @@ static int enable_qmp_capabilities(libxl__qmp_handler *qmp) * Helpers */ -static libxl__qmp_message_type qmp_response_type(libxl__qmp_handler *qmp, - const libxl__json_object *o) +static libxl__qmp_message_type qmp_response_type(const libxl__json_object *o) { libxl__qmp_message_type type; libxl__json_map_node *node = NULL; @@ -340,7 +339,7 @@ static int qmp_handle_response(libxl__gc *gc, libxl__qmp_handler *qmp, { libxl__qmp_message_type type = LIBXL__QMP_MESSAGE_TYPE_INVALID; - type = qmp_response_type(qmp, resp); + type = qmp_response_type(resp); LOGD(DEBUG, qmp->domid, "message type: %s", libxl__qmp_message_type_to_string(type)); switch (type) {