1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00

Subject: [PATCH] call lws_plat_inet_ntop instead of inet_ntop

This commit is contained in:
banthonywalker 2015-02-28 14:30:09 +01:00 committed by Andy Green
parent 93d947c924
commit 418a49b9e8
2 changed files with 1 additions and 3 deletions

View file

@ -356,7 +356,7 @@ libwebsockets_get_addresses(struct libwebsocket_context *context,
if (!p)
return -1;
inet_ntop(AF_INET, p, rip, rip_len);
lws_plat_inet_ntop(AF_INET, p, rip, rip_len);
return 0;
}

View file

@ -438,10 +438,8 @@ lws_plat_open_file(const char* filename, unsigned long* filelen)
return ret;
}
#ifdef LWS_USE_IPV6
LWS_VISIBLE const char *
lws_plat_inet_ntop(int af, const void *src, char *dst, int cnt)
{
return inet_ntop(af, src, dst, cnt);
}
#endif