From 418a49b9e83f8e5d97bd0b3713e9ab10f677f3a9 Mon Sep 17 00:00:00 2001 From: banthonywalker Date: Sat, 28 Feb 2015 14:30:09 +0100 Subject: [PATCH] Subject: [PATCH] call lws_plat_inet_ntop instead of inet_ntop --- lib/libwebsockets.c | 2 +- lib/lws-plat-unix.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/libwebsockets.c b/lib/libwebsockets.c index d32269ff..3f406c2e 100644 --- a/lib/libwebsockets.c +++ b/lib/libwebsockets.c @@ -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; } diff --git a/lib/lws-plat-unix.c b/lib/lws-plat-unix.c index 52069cc9..acd11c3b 100644 --- a/lib/lws-plat-unix.c +++ b/lib/lws-plat-unix.c @@ -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