On 10/20/2014 06:29 AM, Igor Mammedov wrote:
> use error_report_fatal() helper instead of a bunch of
>     if (local_err) {
>         error_report(foo);
>         error_free(local_err);
>         exit(1);
>     }
> code blocks
> 
> Signed-off-by: Igor Mammedov <imamm...@redhat.com>
> ---
>  * s/exit_if_error/error_report_fatal/
>  * move error_report_fatal() into util/error.c
> ---
>  include/qemu/error-report.h |  2 ++
>  util/error.c                | 24 ++++++++++++++++++++++++
>  vl.c                        | 34 ++++++----------------------------
>  3 files changed, 32 insertions(+), 28 deletions(-)
> 

Reviewed-by: Eric Blake <ebl...@redhat.com>


-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to