summaryrefslogtreecommitdiff
path: root/protocols/Tox/libtox
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-12-26 20:31:39 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-12-26 20:31:39 +0300
commitcddcd7483a7c472598af098e759e5d309024f606 (patch)
treeb0a227d6e087c41958cc84d27bc323353248aae5 /protocols/Tox/libtox
parent1039b2829a264280493ba0fa979214fe024dc70c (diff)
DWORD -> uint32_t
Diffstat (limited to 'protocols/Tox/libtox')
-rw-r--r--protocols/Tox/libtox/src/toxcore/network.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Tox/libtox/src/toxcore/network.c b/protocols/Tox/libtox/src/toxcore/network.c
index 3efa3283e9..88b4695a21 100644
--- a/protocols/Tox/libtox/src/toxcore/network.c
+++ b/protocols/Tox/libtox/src/toxcore/network.c
@@ -117,7 +117,7 @@ static const char *inet_ntop4(const struct in_addr *addr, char *buf, size_t bufs
saddr.sin_family = AF_INET;
saddr.sin_addr = *addr;
- DWORD len = bufsize;
+ uint32_t len = bufsize;
if (WSAAddressToString((LPSOCKADDR)&saddr, sizeof(saddr), nullptr, buf, &len)) {
return nullptr;
@@ -133,7 +133,7 @@ static const char *inet_ntop6(const struct in6_addr *addr, char *buf, size_t buf
saddr.sin6_family = AF_INET6;
saddr.sin6_addr = *addr;
- DWORD len = bufsize;
+ uint32_t len = bufsize;
if (WSAAddressToString((LPSOCKADDR)&saddr, sizeof(saddr), nullptr, buf, &len)) {
return nullptr;