Proper struct initialization
Detected by clang -Wmissing-field-initializers
This commit is contained in:
parent
7099a4437e
commit
bc8dbfc9fd
12 changed files with 105 additions and 59 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue