[libvirt] [PATCH] Remove MAX_TAP_ID, take 3

Daniel Veillard veillard at redhat.com
Thu Jul 30 10:11:44 UTC 2009


On Thu, Jul 30, 2009 at 12:04:40PM +0200, Matthias Bolte wrote:
> 2009/7/30 Mark McLoughlin <markmc at redhat.com>:
> > AFAIR, this works?
> >
> >  struct ifreq ifr = {0,};
> >
> > Cheers,
> > Mark.
> >
> 
> No, it doesn't, I tested it. The problem is the internal structure of
> ifreq. GCC complains until the initializer matches this structure. Or
> use memset like all other bridge functions do:
> 
> struct ifreq ifr;
> memset(&ifr, 0, sizeof(struct ifreq));

  Anyway I commited the switch back to memset(), so all set IMHO :-)

Daniel

-- 
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