Re: [PATCH 3/6 V4] inject-nmi: Implementing the public API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/10/2011 02:26 AM, Lai Jiangshan wrote:
> ---
>  src/libvirt.c |   44 ++++++++++++++++++++++++++++++++++++++++++++
>  1 files changed, 44 insertions(+), 0 deletions(-)
> 
> diff --git a/src/libvirt.c b/src/libvirt.c
> index abacf85..f468b61 100644
> --- a/src/libvirt.c
> +++ b/src/libvirt.c
> @@ -5217,6 +5217,50 @@ error:
>  }
>  
>  /**
> + * virDomainInjectNMI:
> + * @domain: pointer to domain object, or NULL for Domain0
> + * @flags:  the flags for controlling behaviours

s/behaviours/behavior, pass 0 for now/

> +    if (!VIR_IS_CONNECTED_DOMAIN(domain)) {
> +        virLibDomainError(VIR_ERR_INVALID_DOMAIN, __FUNCTION__);
> +        virDispatchError(NULL);
> +        return (-1);

No need for extra () on return.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]