diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2021-10-28 16:18:25 +0100 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2021-11-02 15:55:13 +0000 |
commit | 0ca117a756a79c0f93c9030b5c5a92982e3b0ee5 (patch) | |
tree | eab7211dff3dfd18993477d746f7c4bedf4ce02f /include/monitor | |
parent | 3e11e0b2dd5b0ed98d129aeacf46276f3671b5f5 (diff) |
monitor: make hmp_handle_error return a boolean
This turns the pattern
if (err) {
hmp_handle_error(mon, err);
return;
}
into
if (hmp_handle_error(mon, err)) {
return;
}
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'include/monitor')
-rw-r--r-- | include/monitor/hmp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/monitor/hmp.h b/include/monitor/hmp.h index 6bc27639e0..a2cb002a3a 100644 --- a/include/monitor/hmp.h +++ b/include/monitor/hmp.h @@ -16,7 +16,7 @@ #include "qemu/readline.h" -void hmp_handle_error(Monitor *mon, Error *err); +bool hmp_handle_error(Monitor *mon, Error *err); void hmp_info_name(Monitor *mon, const QDict *qdict); void hmp_info_version(Monitor *mon, const QDict *qdict); |