mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
ID:354 - struct member h_addr has been replaced
Struct member h_addr has been replaced some time ago and kept for backward compatibility. Let's reflect on this and replace it with h_addr_list[0].
This commit is contained in:
parent
148d0e0904
commit
3105812a44
@ -440,7 +440,7 @@ ipmi_tsol_main(struct ipmi_intf *intf, int argc, char **argv)
|
|||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
sa_in->sin_family = host->h_addrtype;
|
sa_in->sin_family = host->h_addrtype;
|
||||||
memcpy(&sa_in->sin_addr, host->h_addr, host->h_length);
|
memcpy(&sa_in->sin_addr, host->h_addr_list[0], host->h_length);
|
||||||
}
|
}
|
||||||
|
|
||||||
fd_socket = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP);
|
fd_socket = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user