From 26138619b31b98c34a9998b0b9d79779391ea0d8 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Sat, 25 Jun 2005 18:34:32 +0000 Subject: [PATCH] Fix some -Wmissing-declarations warnings. "errno" is not a good choice for a parameter name. --- dlls/winsock/async.c | 8 ++++---- dlls/winsock/protocol.c | 1 + dlls/winsock/socket.c | 9 +++++---- include/ws2spi.h | 11 +++++++++++ 4 files changed, 21 insertions(+), 8 deletions(-) diff --git a/dlls/winsock/async.c b/dlls/winsock/async.c index 561bacf650b..7d16b12c8c4 100644 --- a/dlls/winsock/async.c +++ b/dlls/winsock/async.c @@ -765,12 +765,12 @@ INT WINAPI WSApSetPostRoutine(LPWPUPOSTMESSAGE lpPostRoutine) * (WS2_32.25) */ WSAEVENT WINAPI WPUCompleteOverlappedRequest(SOCKET s, LPWSAOVERLAPPED overlapped, - DWORD error, DWORD transferred, LPINT errno) + DWORD error, DWORD transferred, LPINT errcode) { - FIXME("(0x%08x,%p,0x%08lx,0x%08lx,%p), stub !\n", s, overlapped, error, transferred, errno); + FIXME("(0x%08x,%p,0x%08lx,0x%08lx,%p), stub !\n", s, overlapped, error, transferred, errcode); - if (errno) - *errno = WSAEINVAL; + if (errcode) + *errcode = WSAEINVAL; return NULL; } diff --git a/dlls/winsock/protocol.c b/dlls/winsock/protocol.c index eda84d8d91f..015cf33d13f 100644 --- a/dlls/winsock/protocol.c +++ b/dlls/winsock/protocol.c @@ -46,6 +46,7 @@ #include "winsock2.h" #include "wsipx.h" #include "wshisotp.h" +#include "ws2spi.h" #include "wine/unicode.h" #include "wine/debug.h" diff --git a/dlls/winsock/socket.c b/dlls/winsock/socket.c index d86038b6458..a89e62ebd86 100644 --- a/dlls/winsock/socket.c +++ b/dlls/winsock/socket.c @@ -127,6 +127,7 @@ #include "winsock2.h" #include "mswsock.h" #include "ws2tcpip.h" +#include "ws2spi.h" #include "wsipx.h" #include "winnt.h" #include "iphlpapi.h" @@ -4252,13 +4253,13 @@ INT WINAPI WSCEnableNSProvider( LPGUID provider, BOOL enable ) /*********************************************************************** * WSCGetProviderPath (WS2_32.86) */ -INT WINAPI WSCGetProviderPath( LPGUID provider, LPWSTR path, LPINT len, LPINT errno ) +INT WINAPI WSCGetProviderPath( LPGUID provider, LPWSTR path, LPINT len, LPINT errcode ) { - FIXME( "(%s %p %p %p) Stub!\n", debugstr_guid(provider), path, len, errno ); + FIXME( "(%s %p %p %p) Stub!\n", debugstr_guid(provider), path, len, errcode ); - if (!errno || !provider || !len) return WSAEFAULT; + if (!errcode || !provider || !len) return WSAEFAULT; - *errno = WSAEINVAL; + *errcode = WSAEINVAL; return SOCKET_ERROR; } diff --git a/include/ws2spi.h b/include/ws2spi.h index b0a3b909791..642719df4e9 100644 --- a/include/ws2spi.h +++ b/include/ws2spi.h @@ -33,6 +33,17 @@ extern "C" { typedef BOOL (WINAPI *LPWPUPOSTMESSAGE)(HWND,UINT,WPARAM,LPARAM); +WSAEVENT WINAPI WPUCompleteOverlappedRequest(SOCKET,LPWSAOVERLAPPED,DWORD,DWORD,LPINT); +INT WINAPI WSCInstallProvider(const LPGUID,LPCWSTR,const LPWSAPROTOCOL_INFOW, + DWORD,LPINT); +INT WINAPI WSCDeinstallProvider(LPGUID,LPINT); +INT WINAPI WSCEnableNSProvider(LPGUID,BOOL); +INT WINAPI WSCEnumProtocols(LPINT,LPWSAPROTOCOL_INFOW,LPDWORD,LPINT); +INT WINAPI WSCGetProviderPath(LPGUID,LPWSTR,LPINT,LPINT); +INT WINAPI WSCInstallNameSpace(LPWSTR,LPWSTR,DWORD,DWORD,LPGUID); +INT WINAPI WSCUnInstallNameSpace(LPGUID); +INT WINAPI WSCWriteProviderOrder(LPDWORD,DWORD); + #ifdef __cplusplus } /* extern "C" */ #endif /* defined(__cplusplus) */