mirror of
https://github.com/libuv/libuv
synced 2025-03-28 21:13:16 +00:00
aix,ibmi: fix undeclared identifiers (#4730)
Refs: https://github.com/libuv/libuv/pull/4724
This commit is contained in:
parent
92eacd19a1
commit
352d992916
@ -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))
|
if (!(flg.ifr_flags & IFF_UP && flg.ifr_flags & IFF_RUNNING))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
namelen += strlen(ent->ifa_name) + 1;
|
namelen += strlen(p->ifr_name) + 1;
|
||||||
(*count)++;
|
(*count)++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1191,6 +1191,7 @@ int uv_interface_addresses(uv_interface_address_t** addresses, int* count) {
|
|||||||
r = UV_ENOMEM;
|
r = UV_ENOMEM;
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
name = (char*) &(*addresses)[*count];
|
||||||
address = *addresses;
|
address = *addresses;
|
||||||
|
|
||||||
ifr = ifc.ifc_req;
|
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) {
|
int uv_interface_addresses(uv_interface_address_t** addresses, int* count) {
|
||||||
uv_interface_address_t* address;
|
uv_interface_address_t* address;
|
||||||
struct ifaddrs_pase *ifap = NULL, *cur;
|
struct ifaddrs_pase *ifap = NULL, *cur;
|
||||||
|
size_t namelen;
|
||||||
|
char* name;
|
||||||
int inet6, r = 0;
|
int inet6, r = 0;
|
||||||
|
|
||||||
*count = 0;
|
*count = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user