rpcrt4: fix some missing-declarations warnings
Stefan Huehner
stefan at huehner.org
Sun Jul 24 06:29:52 CDT 2005
Hi,
attached patch makes some functions static and removes these from the
corresponding header file.
Additionally include this header file in the file implementing the
functions.
ChangeLog:
- fix some missing-declarations warnings
Regards,
Stefan
-------------- next part --------------
Index: dlls/rpcrt4/rpc_binding.c
===================================================================
RCS file: /home/wine/wine/dlls/rpcrt4/rpc_binding.c,v
retrieving revision 1.37
diff -u -p -r1.37 rpc_binding.c
--- dlls/rpcrt4/rpc_binding.c 8 Jun 2005 18:31:38 -0000 1.37
+++ dlls/rpcrt4/rpc_binding.c 24 Jul 2005 11:26:54 -0000
@@ -303,7 +303,7 @@ RPC_STATUS RPCRT4_SpawnConnection(RpcCon
return err;
}
-RPC_STATUS RPCRT4_AllocBinding(RpcBinding** Binding, BOOL server)
+static RPC_STATUS RPCRT4_AllocBinding(RpcBinding** Binding, BOOL server)
{
RpcBinding* NewBinding;
Index: dlls/rpcrt4/rpc_message.c
===================================================================
RCS file: /home/wine/wine/dlls/rpcrt4/rpc_message.c,v
retrieving revision 1.14
diff -u -p -r1.14 rpc_message.c
--- dlls/rpcrt4/rpc_message.c 14 Mar 2005 10:11:04 -0000 1.14
+++ dlls/rpcrt4/rpc_message.c 24 Jul 2005 11:26:54 -0000
@@ -41,10 +41,11 @@
#include "rpc_binding.h"
#include "rpc_misc.h"
#include "rpc_defs.h"
+#include "rpc_message.h"
WINE_DEFAULT_DEBUG_CHANNEL(rpc);
-DWORD RPCRT4_GetHeaderSize(RpcPktHdr *Header)
+static DWORD RPCRT4_GetHeaderSize(RpcPktHdr *Header)
{
static const DWORD header_sizes[] = {
sizeof(Header->request), 0, sizeof(Header->response),
@@ -67,7 +68,7 @@ DWORD RPCRT4_GetHeaderSize(RpcPktHdr *He
return ret;
}
-VOID RPCRT4_BuildCommonHeader(RpcPktHdr *Header, unsigned char PacketType,
+static VOID RPCRT4_BuildCommonHeader(RpcPktHdr *Header, unsigned char PacketType,
unsigned long DataRepresentation)
{
Header->common.rpc_ver = RPC_VER_MAJOR;
@@ -83,7 +84,7 @@ VOID RPCRT4_BuildCommonHeader(RpcPktHdr
/* Flags and fragment length are computed in RPCRT4_Send. */
}
-RpcPktHdr *RPCRT4_BuildRequestHeader(unsigned long DataRepresentation,
+static RpcPktHdr *RPCRT4_BuildRequestHeader(unsigned long DataRepresentation,
unsigned long BufferLength,
unsigned short ProcNum,
UUID *ObjectUuid)
@@ -113,7 +114,7 @@ RpcPktHdr *RPCRT4_BuildRequestHeader(uns
return header;
}
-RpcPktHdr *RPCRT4_BuildResponseHeader(unsigned long DataRepresentation,
+static RpcPktHdr *RPCRT4_BuildResponseHeader(unsigned long DataRepresentation,
unsigned long BufferLength)
{
RpcPktHdr *header;
Index: dlls/rpcrt4/rpc_message.h
===================================================================
RCS file: /home/wine/wine/dlls/rpcrt4/rpc_message.h,v
retrieving revision 1.1
diff -u -p -r1.1 rpc_message.h
--- dlls/rpcrt4/rpc_message.h 26 Apr 2004 23:33:39 -0000 1.1
+++ dlls/rpcrt4/rpc_message.h 24 Jul 2005 11:26:54 -0000
@@ -24,9 +24,6 @@
#include "wine/rpcss_shared.h"
#include "rpc_defs.h"
-VOID RPCRT4_BuildCommonHeader(RpcPktHdr *Header, unsigned char PacketType, unsigned long DataRepresentation);
-RpcPktHdr *RPCRT4_BuildRequestHeader(unsigned long DataRepresentation, unsigned long BufferLength, unsigned short ProcNum, UUID *ObjectUuid);
-RpcPktHdr *RPCRT4_BuildResponseHeader(unsigned long DataRepresentation, unsigned long BufferLength);
RpcPktHdr *RPCRT4_BuildFaultHeader(unsigned long DataRepresentation, RPC_STATUS Status);
RpcPktHdr *RPCRT4_BuildBindHeader(unsigned long DataRepresentation, unsigned short MaxTransmissionSize, unsigned short MaxReceiveSize, RPC_SYNTAX_IDENTIFIER *AbstractId, RPC_SYNTAX_IDENTIFIER *TransferId);
RpcPktHdr *RPCRT4_BuildBindNackHeader(unsigned long DataRepresentation, unsigned char RpcVersion, unsigned char RpcVersionMinor);
More information about the wine-patches
mailing list