Fix some -Wmissing-declarations warnings.

"errno" is not a good choice for a parameter name.
This commit is contained in:
Hans Leidekker 2005-06-25 18:34:32 +00:00 committed by Alexandre Julliard
parent f51496a232
commit 26138619b3
4 changed files with 21 additions and 8 deletions

View File

@ -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;
}

View File

@ -46,6 +46,7 @@
#include "winsock2.h"
#include "wsipx.h"
#include "wshisotp.h"
#include "ws2spi.h"
#include "wine/unicode.h"
#include "wine/debug.h"

View File

@ -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;
}

View File

@ -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) */