Re: [libvirt] [PATCH] Remove MAX_TAP_ID, take 3

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

 



On Thu, Jul 30, 2009 at 12:04:40PM +0200, Matthias Bolte wrote:
> 2009/7/30 Mark McLoughlin <markmc@xxxxxxxxxx>:
> > 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@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

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