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