mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 21:37:17 +01:00
suppress build warnings on windows
Signed-off-by: r4sas <r4sas@i2pmail.org>
This commit is contained in:
parent
d5ee1f602f
commit
dfe5df29e1
|
@ -201,7 +201,7 @@ namespace net
|
||||||
int GetMTUWindowsIpv4 (sockaddr_in inputAddress, int fallback)
|
int GetMTUWindowsIpv4 (sockaddr_in inputAddress, int fallback)
|
||||||
{
|
{
|
||||||
typedef const char *(* IPN)(int af, const void *src, char *dst, socklen_t size);
|
typedef const char *(* IPN)(int af, const void *src, char *dst, socklen_t size);
|
||||||
IPN inetntop = (IPN)GetProcAddress (GetModuleHandle ("ws2_32.dll"), "InetNtop");
|
IPN inetntop = (IPN)(void*)GetProcAddress (GetModuleHandle ("ws2_32.dll"), "InetNtop");
|
||||||
if (!inetntop) inetntop = inet_ntop_xp; // use own implementation if not found
|
if (!inetntop) inetntop = inet_ntop_xp; // use own implementation if not found
|
||||||
|
|
||||||
ULONG outBufLen = 0;
|
ULONG outBufLen = 0;
|
||||||
|
@ -262,7 +262,7 @@ namespace net
|
||||||
int GetMTUWindowsIpv6 (sockaddr_in6 inputAddress, int fallback)
|
int GetMTUWindowsIpv6 (sockaddr_in6 inputAddress, int fallback)
|
||||||
{
|
{
|
||||||
typedef const char *(* IPN)(int af, const void *src, char *dst, socklen_t size);
|
typedef const char *(* IPN)(int af, const void *src, char *dst, socklen_t size);
|
||||||
IPN inetntop = (IPN)GetProcAddress (GetModuleHandle ("ws2_32.dll"), "InetNtop");
|
IPN inetntop = (IPN)(void*)GetProcAddress (GetModuleHandle ("ws2_32.dll"), "InetNtop");
|
||||||
if (!inetntop) inetntop = inet_ntop_xp; // use own implementation if not found
|
if (!inetntop) inetntop = inet_ntop_xp; // use own implementation if not found
|
||||||
|
|
||||||
ULONG outBufLen = 0;
|
ULONG outBufLen = 0;
|
||||||
|
@ -341,7 +341,7 @@ namespace net
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef int (* IPN)(int af, const char *src, void *dst);
|
typedef int (* IPN)(int af, const char *src, void *dst);
|
||||||
IPN inetpton = (IPN)GetProcAddress (GetModuleHandle ("ws2_32.dll"), "InetPton");
|
IPN inetpton = (IPN)(void*)GetProcAddress (GetModuleHandle ("ws2_32.dll"), "InetPton");
|
||||||
if (!inetpton) inetpton = inet_pton_xp; // use own implementation if not found
|
if (!inetpton) inetpton = inet_pton_xp; // use own implementation if not found
|
||||||
|
|
||||||
if (localAddress.is_v4())
|
if (localAddress.is_v4())
|
||||||
|
|
Loading…
Reference in a new issue