Proper struct initialization

Detected by clang -Wmissing-field-initializers
This commit is contained in:
thorkill 2015-06-29 23:30:18 +02:00
parent 7099a4437e
commit bc8dbfc9fd
12 changed files with 105 additions and 59 deletions

View file

@ -65,7 +65,8 @@ static bool setup_device(void) {
fcntl(device_fd, F_SETFD, FD_CLOEXEC);
#endif
struct ifreq ifr = {{{0}}};
struct ifreq ifr;
memset(&ifr, 0x0, sizeof(struct ifreq));
get_config_string(lookup_config(config_tree, "DeviceType"), &type);