winsock: Tweak getnameinfo() prototype.
Tweak the getnameinfo() prototype to better match the Windows PSDK and
the GetNameInfoW() prototype.
Update win32.api.
diff --git a/dlls/winsock/socket.c b/dlls/winsock/socket.c
index a07c5b4..8ca3a3e 100644
--- a/dlls/winsock/socket.c
+++ b/dlls/winsock/socket.c
@@ -3235,8 +3235,8 @@
return EAI_FAIL;
}
-int WINAPI WS_getnameinfo(const struct WS_sockaddr *sa, socklen_t salen, char *host,
- DWORD hostlen, char *serv, DWORD servlen, int flags)
+int WINAPI WS_getnameinfo(const SOCKADDR *sa, socklen_t salen, PCHAR host,
+ DWORD hostlen, PCHAR serv, DWORD servlen, INT flags)
{
#if HAVE_GETNAMEINFO
int ret;
diff --git a/include/ws2tcpip.h b/include/ws2tcpip.h
index 16efab6..9847dab 100644
--- a/include/ws2tcpip.h
+++ b/include/ws2tcpip.h
@@ -215,7 +215,7 @@
#define GetAddrInfoA WS(getaddrinfo)
int WINAPI GetAddrInfoW(PCWSTR,PCWSTR,const ADDRINFOW*,PADDRINFOW*);
#define GetAddrInfo WINELIB_NAME_AW(GetAddrInfo)
-int WINAPI WS(getnameinfo)(const struct WS(sockaddr)*,socklen_t,char*,DWORD,char*,DWORD,int);
+int WINAPI WS(getnameinfo)(const SOCKADDR*,socklen_t,PCHAR,DWORD,PCHAR,DWORD,INT);
#define GetNameInfoA WS(getnameinfo)
INT WINAPI GetNameInfoW(const SOCKADDR*,socklen_t,PWCHAR,DWORD,PWCHAR,DWORD,INT);
#define GetNameInfo WINELIB_NAME_AW(GetNameInfo)
diff --git a/tools/winapi/win32.api b/tools/winapi/win32.api
index aa19883..8911a2d 100644
--- a/tools/winapi/win32.api
+++ b/tools/winapi/win32.api
@@ -5347,6 +5347,7 @@
WSAEVENT
int
long
+socklen_t
u_long
u_short
@@ -5378,6 +5379,7 @@
LPWSASERVICECLASSINFOA
LPWSASERVICECLASSINFOW
PADDRINFOW *
+SOCKADDR *
WS_fd_set *
int *
struct WS_addrinfo *
@@ -5394,6 +5396,7 @@
LPCSTR
LPSTR
+PCHAR
char *
%unknown