mirror of
https://github.com/libuv/libuv
synced 2025-03-28 21:13:16 +00:00
unix: fix undeclared identifiers
Refs: https://github.com/libuv/libuv/pull/4724
This commit is contained in:
parent
545ecf515f
commit
e523ea2da0
@ -1178,7 +1178,7 @@ int uv_interface_addresses(uv_interface_address_t** addresses, int* count) {
|
||||
if (!(flg.ifr_flags & IFF_UP && flg.ifr_flags & IFF_RUNNING))
|
||||
continue;
|
||||
|
||||
namelen += strlen(ent->ifa_name) + 1;
|
||||
namelen += strlen(p->ifr_name) + 1;
|
||||
(*count)++;
|
||||
}
|
||||
|
||||
@ -1191,6 +1191,7 @@ int uv_interface_addresses(uv_interface_address_t** addresses, int* count) {
|
||||
r = UV_ENOMEM;
|
||||
goto cleanup;
|
||||
}
|
||||
name = (char*) &(*addresses)[*count];
|
||||
address = *addresses;
|
||||
|
||||
ifr = ifc.ifc_req;
|
||||
|
@ -394,6 +394,8 @@ static int get_ibmi_physical_address(const char* line, char (*phys_addr)[6]) {
|
||||
int uv_interface_addresses(uv_interface_address_t** addresses, int* count) {
|
||||
uv_interface_address_t* address;
|
||||
struct ifaddrs_pase *ifap = NULL, *cur;
|
||||
size_t namelen;
|
||||
char* name;
|
||||
int inet6, r = 0;
|
||||
|
||||
*count = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user