Re: [PATCH 11/11] Remove use of networkPrivateData from netcf driver

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

 



On 10/23/2014 09:14 AM, Daniel P. Berrange wrote:
> The shared netcf driver is stateful and inside the daemon so
> there is no need to use the networkPrivateData field to get the
> driver handle. Just access the global driver handle directly.
> ---
>  src/interface/interface_backend_netcf.c | 71 +++++++++++----------------------
>  1 file changed, 23 insertions(+), 48 deletions(-)

ACK.

> 
> diff --git a/src/interface/interface_backend_netcf.c b/src/interface/interface_backend_netcf.c
> index c55a080..3d01b08 100644
> --- a/src/interface/interface_backend_netcf.c
> +++ b/src/interface/interface_backend_netcf.c
> @@ -63,16 +63,16 @@ virNetcfDriverStateOnceInit(void)
>  
>  VIR_ONCE_GLOBAL_INIT(virNetcfDriverState)
>  
> -static virNetcfDriverStatePtr driverState = NULL;
> +static virNetcfDriverStatePtr driver = NULL;
>  
>  
>  static void
>  virNetcfDriverStateDispose(void *obj)
>  {
> -    virNetcfDriverStatePtr driver = obj;
> +    virNetcfDriverStatePtr _driver = obj;

Annoying that you had to use a name with leading underscore, but this
usage is safe.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
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]