mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
22bf5be323
commit
bbc721a82c
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
|
||||