| Submitter | Luiz Capitulino |
|---|---|
| Date | Aug. 10, 2012, 5:44 p.m. |
| Message ID | <1344620653-29067-28-git-send-email-lcapitulino@redhat.com> |
| Download | mbox | patch |
| Permalink | /patch/176596/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/hmp.c b/hmp.c index 54c37d7..9b44dfc 100644 --- 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;
The error_is_type() function is going to be dropped. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> --- hmp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)