projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea25fbc
)
hmp: hmp_change(): use error_get_class()
author
Luiz Capitulino
<lcapitulino@redhat.com>
Mon, 6 Aug 2012 18:55:22 +0000
(15:55 -0300)
committer
Luiz Capitulino
<lcapitulino@redhat.com>
Mon, 13 Aug 2012 16:21:37 +0000
(13:21 -0300)
The error_is_type() function is going to be dropped.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
hmp.c
patch
|
blob
|
history
diff --git
a/hmp.c
b/hmp.c
index 54c37d72542d89957e491890dde26bcc826505bd..9b44dfcf3a41b34f1aafbba1d24fd834f20664c3 100644
(file)
--- a/
hmp.c
+++ b/
hmp.c
@@
-793,7
+793,8
@@
void hmp_change(Monitor *mon, const QDict *qdict)
}
qmp_change(device, target, !!arg, arg, &err);
- if (error_is_type(err, QERR_DEVICE_ENCRYPTED)) {
+ if (error_is_set(&err) &&
+ error_get_class(err) == ERROR_CLASS_DEVICE_ENCRYPTED) {
error_free(err);
monitor_read_block_device_key(mon, device, NULL, NULL);
return;