https://git.reactos.org/?p=reactos.git;a=commitdiff;h=79f2289a9d39eafa07259a...
commit 79f2289a9d39eafa07259ace33f5a1397264f0c8 Author: Baruch Rutman peterooch@gmail.com AuthorDate: Tue Jul 2 00:13:09 2024 +0300 Commit: Hermès BÉLUSCA - MAÏTO hermes.belusca-maito@reactos.org CommitDate: Sat Nov 2 21:57:28 2024 +0100
Fix various inet_ntop definitions --- dll/3rdparty/libtirpc/src/rpc_generic.c | 2 +- dll/win32/winhttp/inet_ntop.c | 2 +- dll/win32/wininet/inet_ntop.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dll/3rdparty/libtirpc/src/rpc_generic.c b/dll/3rdparty/libtirpc/src/rpc_generic.c index fc646f5bc50..ec13e56f69a 100644 --- a/dll/3rdparty/libtirpc/src/rpc_generic.c +++ b/dll/3rdparty/libtirpc/src/rpc_generic.c @@ -641,7 +641,7 @@ void freenetbuf(struct netbuf *nbuf) #ifdef __REACTOS__ PCSTR WSAAPI -inet_ntop(INT af, PVOID src, PSTR dst, size_t cnt) +inet_ntop(INT af, const VOID *src, PSTR dst, size_t cnt) { struct in_addr in; char *text_addr; diff --git a/dll/win32/winhttp/inet_ntop.c b/dll/win32/winhttp/inet_ntop.c index 99d5ccdcf19..8e40e261e33 100644 --- a/dll/win32/winhttp/inet_ntop.c +++ b/dll/win32/winhttp/inet_ntop.c @@ -54,7 +54,7 @@ static const char *inet_ntop6(const u_char *src, char *dst, size_t size);
PCSTR WSAAPI -inet_ntop(INT Family, PVOID pAddr, PSTR pStringBuf, size_t StringBufSize) +inet_ntop(INT Family, const VOID *pAddr, PSTR pStringBuf, size_t StringBufSize) {
switch (Family) { diff --git a/dll/win32/wininet/inet_ntop.c b/dll/win32/wininet/inet_ntop.c index 27a388f9146..378b67d9ab1 100644 --- a/dll/win32/wininet/inet_ntop.c +++ b/dll/win32/wininet/inet_ntop.c @@ -53,7 +53,7 @@ PCSTR WSAAPI inet_ntop( _In_ INT af, - _In_ PVOID src, + _In_ const VOID *src, _Out_writes_(StringBufSize) PSTR dst, _In_ size_t size) {