struct type *slh_first; /* first element */ \
}
+#if 0
#define SLIST_ENTRY(type) \
struct { \
struct type *sle_next; /* next element */ \
}
+#endif
/*
* Singly-linked List functions.
static __inline int bsd_log ( int blah, const char* fmt, ... )
{
va_list arg;
- int i;
+ int i = 0;
va_start(arg, fmt);
#ifndef __NTDRIVER__
i = vprintf ( fmt, arg );
char **envv;
};
int execve __P((struct proc *, struct execve_args *, int *retval));
+
+#if 0
struct fork_args {
int dummy;
};
int fork __P((struct proc *, struct fork_args *, int retval[]));
+#endif
+
struct sync_args {
int dummy;
};
#ifndef _OSKITFREEBSD_H
#define _OSKITFREEBSD_H
+#undef PAGE_SIZE
+#undef PAGE_SHIFT
#include <ntddk.h>
#ifdef linux
<?xml version="1.0"?>
<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
-<module name="oskittcp" type="staticlibrary" allowwarnings="true">
+<module name="oskittcp" type="staticlibrary">
<define name="__NTDRIVER__"/>
<define name="KERNEL"/>
<define name="_DISABLE_TIDENTS"/>
OS_DbgPrint(OSK_MID_TRACE,("Called\n"));
- if( nam ) OskitDumpBuffer( nam->m_data, nam->m_len );
+ if( nam ) OskitDumpBuffer((OSK_PCHAR)nam->m_data, nam->m_len );
#ifndef __REACTOS__
if (in_ifaddr == 0) {
void *fbsd_malloc( unsigned int bytes, char *file, unsigned line, ... ) {
if( !OtcpEvent.TCPMalloc ) panic("no malloc");
return OtcpEvent.TCPMalloc
- ( OtcpEvent.ClientData, (OSK_UINT)bytes, file, line );
+ ( OtcpEvent.ClientData, (OSK_UINT)bytes, (OSK_PCHAR)file, line );
}
void fbsd_free( void *data, char *file, unsigned line, ... ) {
if( !OtcpEvent.TCPFree ) panic("no free");
- OtcpEvent.TCPFree( OtcpEvent.ClientData, data, file, line );
+ OtcpEvent.TCPFree( OtcpEvent.ClientData, data, (OSK_PCHAR)file, line );
}
void InitOskitTCP() {
uio.uio_rw = UIO_READ;
uio.uio_iovcnt = 1;
iov.iov_len = Len;
- iov.iov_base = Data;
+ iov.iov_base = (char *)Data;
OS_DbgPrint(OSK_MID_TRACE,("Reading %d bytes from TCP:\n", Len));
struct iovec iov;
iov.iov_len = Len;
- iov.iov_base = Data;
+ iov.iov_base = (char *)Data;
uio.uio_iov = &iov;
uio.uio_iovcnt = 1;
uio.uio_offset = 0;
void OskitTCPReceiveDatagram( OSK_PCHAR Data, OSK_UINT Len,
OSK_UINT IpHeaderLen ) {
- struct mbuf *Ip = m_devget( Data, Len, 0, NULL, NULL );
+ struct mbuf *Ip = m_devget( (char *)Data, Len, 0, NULL, NULL );
struct ip *iph;
if( !Ip ) return; /* drop the segment */
#endif
register struct mbuf *m = m0;
register int hlen = sizeof (struct ip);
- int len, off, error = 0;
+ int len = 0, off, error = 0;
/*
* It might seem obvious at first glance that one could easily
* make a one-behind cache out of this by simply making `iproute'
*/
struct route iproute;
struct sockaddr_in *dst;
- struct in_ifaddr *ia;
+ struct in_ifaddr *ia = NULL;
#ifdef DIAGNOSTIC
if ((m->m_flags & M_PKTHDR) == 0)
m_copydata( m, 0, htons(ip->ip_len), new_m->m_data );
new_m->m_len = htons(ip->ip_len);
error = OtcpEvent.PacketSend( OtcpEvent.ClientData,
- new_m->m_data, new_m->m_len );
+ (OSK_PCHAR)new_m->m_data, new_m->m_len );
m_free( new_m );
goto done;
}
m_copydata( m, 0, htons(ip->ip_len), new_m->m_data );
new_m->m_len = htons(ip->ip_len);
error = OtcpEvent.PacketSend( OtcpEvent.ClientData,
- new_m->m_data, new_m->m_len );
+ (OSK_PCHAR)new_m->m_data, new_m->m_len );
m_free( new_m );
goto done;
}
* else do it below (after getting remote address).
*/
if (tp->t_state != TCPS_LISTEN)
- tcp_dooptions(tp, optp, optlen, ti, &to);
+ tcp_dooptions(tp, (u_char *)optp, optlen, ti, &to);
/*
* Header prediction: check for the two common cases
taop = &tao_noncached;
bzero(taop, sizeof(*taop));
}
- tcp_dooptions(tp, optp, optlen, ti, &to);
+ tcp_dooptions(tp, (u_char *)optp, optlen, ti, &to);
if (iss)
tp->iss = iss;
else
int offer;
{
register struct rtentry *rt;
- struct ifnet *ifp;
+ struct ifnet *ifp = NULL;
register int rtt, mss;
u_long bufsize;
struct inpcb *inp;