[libvirt] [PATCH] esx: Simplify some esxVI_Boolean to bool

Eric Blake eblake at redhat.com
Mon May 16 17:59:12 UTC 2011


On 05/01/2011 01:57 PM, Matthias Bolte wrote:
> ---
>  src/esx/esx_driver.c |    6 ++----
>  src/esx/esx_vi.c     |   34 +++++++++++++++-------------------
>  src/esx/esx_vi.h     |   12 +++++-------
>  3 files changed, 22 insertions(+), 30 deletions(-)

I got a trivial rebase error when testing this out:

> @@ -3735,13 +3732,12 @@ esxVI_WaitForTaskCompletion(esxVI_Context *ctx,
>                  }
>  
>                  if (taskInfo->cancelable == esxVI_Boolean_True) {
> -                    if (esxVI_CancelTask(ctx, task) < 0 &&
> -                        blocked == esxVI_Boolean_True) {
> +                    if (esxVI_CancelTask(ctx, task) < 0 && blocked) {
>                          VIR_ERROR0(_("Cancelable task is blocked by an "

now that the context has VIR_ERROR instead of VIR_ERROR0.  But I'm
assuming you've already picked up on that.

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110516/55067a35/attachment-0001.sig>


More information about the libvir-list mailing list