libxl: fix return code in qmp_synchronous_send

Use error code from libxl namespace, a plain -1 is not valid in this context.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Wei Liu <wei.liu2@citrix.com>
This commit is contained in:
Olaf Hering authored and Wei Liu committed 2018-06-26 12:43:10 +01:00
1 parent 22bf5be323
commit bbc721a82c
1 file changed
+1 -1
+1 -1
View File
@@ -627,7 +627,7 @@ static int qmp_synchronous_send(libxl__qmp_handler *qmp, const char *cmd,
id = qmp_send(qmp, cmd, args, callback, opaque, &context);
if (id <= 0) {
return -1;
return ERROR_FAIL;
}
qmp->wait_for_id = id;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.