Revert "Proper struct initialization"

This reverts commit bc8dbfc9fd.
This commit is contained in:
thorkill 2015-06-30 18:09:07 +02:00
parent 84ede57e52
commit 4f82a6359f
12 changed files with 59 additions and 105 deletions

View file

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