[libvirt] [PATCH 02/11] Remove 'type' field from FileTypeInfo struct

Daniel Veillard veillard at redhat.com
Thu Jul 15 16:08:49 UTC 2010

On Mon, Jul 12, 2010 at 02:30:39PM +0100, Daniel P. Berrange wrote:
> Instead of including a field in FileTypeInfo struct for the
> disk format, rely on the array index matching the format.
> Use verify() to assert the correct number of elements in the
> array.
> * src/util/storage_file.c: remove type field from FileTypeInfo

  ACK, small simplification and more comoile time checking.


Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

More information about the libvir-list mailing list