- Fix compilation errors with GCC 4.0-20041205.

svn path=/trunk/; revision=12084
This commit is contained in:
Filip Navara 2004-12-13 16:36:39 +00:00
parent 963cbda1e0
commit b5fa0b44a1
3 changed files with 6 additions and 5 deletions

View file

@ -105,13 +105,13 @@ int TCPPacketSend(void *ClientData, OSK_PCHAR data, OSK_UINT len ) {
void *TCPMalloc( void *ClientData,
OSK_UINT Bytes, OSK_PCHAR File, OSK_UINT Line ) {
void *v = PoolAllocateBuffer( Bytes );
if( v ) TrackWithTag( FOURCC('f','b','s','d'), v, File, Line );
if( v ) TrackWithTag( FOURCC('f','b','s','d'), v, (PCHAR)File, Line );
return v;
}
void TCPFree( void *ClientData,
void *data, OSK_PCHAR File, OSK_UINT Line ) {
UntrackFL( File, Line, data );
UntrackFL( (PCHAR)File, Line, data );
PoolFreeBuffer( data );
}

View file

@ -552,7 +552,7 @@ NTSTATUS TCPReceiveData
ULONG ReceiveFlags,
PTCP_COMPLETION_ROUTINE Complete,
PVOID Context ) {
PCHAR DataBuffer;
OSK_PCHAR DataBuffer;
UINT DataLen, Received = 0;
NTSTATUS Status;
PTDI_BUCKET Bucket;
@ -623,7 +623,8 @@ NTSTATUS TCPSendData
Connection->SocketContext));
Status = OskitTCPSend( Connection->SocketContext,
BufferData, PacketSize, (PUINT)DataUsed, 0 );
(OSK_PCHAR)BufferData, PacketSize,
(PUINT)DataUsed, 0 );
TcpipRecursiveMutexLeave( &TCPLock );

View file

@ -85,7 +85,7 @@
/* Exported to machdep.c. */
struct callout *callfree, *callout;
static struct callout calltodo;
struct callout calltodo;
long tk_cancc;
long tk_nin;