Unverified Commit cfd0c93d authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4035 from katzer/patch-1

[mruby-socket] Declare inet_ntop and inet_pton as static
parents 55dcdd26 e7a46991
......@@ -51,7 +51,7 @@
#endif
#ifdef _WIN32
const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt)
static const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt)
{
if (af == AF_INET)
{
......@@ -76,7 +76,7 @@ const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt)
return NULL;
}
int inet_pton(int af, const char *src, void *dst)
static int inet_pton(int af, const char *src, void *dst)
{
struct addrinfo hints, *res, *ressave;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment