OSDN Git Service

Sometimes the compiler doesn't like { 0, } as an initializer...
authorPeter Jones <pjones@redhat.com>
Tue, 14 Jul 2015 13:33:54 +0000 (09:33 -0400)
committerPeter Jones <pjones@redhat.com>
Tue, 14 Jul 2015 13:38:10 +0000 (09:38 -0400)
commita3606c02fd271d32e364fcc540e34ba1899309f6
treec0769ec21283cd5460d664a46d06110dc17cefe5
parentaab6c2a64d90b6e5a63661fb5bd6be8d878b0784
Sometimes the compiler doesn't like { 0, } as an initializer...

Because it really wants to be { {0, },} or something, and sometimes the
compiler, knowing full well what we're trying to do, likes to complain
about the rigor applied to our technique in doing it.

memset() the struct ifreq to 0 instead so I don't need to figure out its
internal structure just to zero it out.

Resolves #28

Signed-off-by: Peter Jones <pjones@redhat.com>
src/linux.c