[libvirt] [PATCH] cleanup: use c99 initializations

Daniel P. Berrange berrange at redhat.com
Mon May 16 17:21:55 UTC 2011


On Mon, May 16, 2011 at 04:17:54PM +0800, Lai Jiangshan wrote:
> 
> It help us avoid to touch many files when we define the internal APIs
> of a public API like commit b19bd85e15332405623ed46a3ee8b99812aa6007.
> 
> ---
>  src/esx/esx_device_monitor.c   |   15 +--
>  src/esx/esx_driver.c           |  175 +++++++++++-------------------
>  src/esx/esx_interface_driver.c |   18 +---
>  src/esx/esx_network_driver.c   |   23 +----
>  src/esx/esx_nwfilter_driver.c  |   13 +--
>  src/esx/esx_secret_driver.c    |   15 +--
>  src/esx/esx_storage_driver.c   |   68 +++++-------
>  src/interface/netcf_driver.c   |   30 +++---
>  src/libxl/libxl_driver.c       |  165 +++++++++-------------------
>  src/lxc/lxc_driver.c           |  161 ++++++++-------------------
>  src/network/bridge_driver.c    |   40 ++++----
>  src/openvz/openvz_driver.c     |  152 +++++++-------------------
>  src/phyp/phyp_driver.c         |  136 +++++------------------
>  src/qemu/qemu_driver.c         |  220 ++++++++++++++++++-------------------
>  src/remote/remote_driver.c     |  224 +++++++++++++++++++-------------------
>  src/test/test_driver.c         |  240 ++++++++++++++++------------------------
>  src/uml/uml_driver.c           |  156 ++++++++-------------------
>  src/vbox/vbox_tmpl.c           |  208 +++++++++++------------------------
>  src/vmware/vmware_driver.c     |  140 +++++-------------------
>  src/xen/xen_driver.c           |  188 +++++++++++++-------------------
>  src/xen/xen_hypervisor.c       |   56 +++-------
>  src/xen/xen_inotify.c          |   40 +-------
>  src/xen/xend_internal.c        |   73 ++++++-------
>  src/xen/xm_internal.c          |   52 +++-------
>  src/xen/xs_internal.c          |   47 ++-------
>  src/xenapi/xenapi_driver.c     |  157 ++++++++-------------------
>  26 files changed, 958 insertions(+), 1854 deletions(-)

The same change was already posted last week and is now merged

commit 879d409e9e618ef2bbe92a8c4ff08017f5bc1793
Author: Daniel P. Berrange <berrange at redhat.com>
Date:   Fri May 13 11:16:31 2011 +0100

    Convert all driver struct intializers to C99 style

commit 9b1ae97fdc230facf58ea4a290305c038e32b147
Author: Daniel P. Berrange <berrange at redhat.com>
Date:   Fri May 13 14:35:01 2011 +0100

    Add many version number annotations to drivers


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list