Subject: [PATCH] call lws_plat_inet_ntop instead of inet_ntop
authorbanthonywalker <bobo.anthony.walker@gmail.com>
Sat, 28 Feb 2015 13:30:09 +0000 (14:30 +0100)
committerAndy Green <andy.green@linaro.org>
Sat, 28 Feb 2015 13:53:47 +0000 (21:53 +0800)
lib/libwebsockets.c
lib/lws-plat-unix.c

index d32269f..3f406c2 100644 (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;
 }
index 52069cc..acd11c3 100644 (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