Author: cgutman
Date: Sat Jan 30 17:45:22 2010
New Revision: 45349
URL:
http://svn.reactos.org/svn/reactos?rev=45349&view=rev
Log:
- Remove some unused junk code
Modified:
branches/aicom-network-branch/lib/drivers/oskittcp/include/freebsd/src/sys/sys/mbuf.h
branches/aicom-network-branch/lib/drivers/oskittcp/oskittcp/uipc_mbuf.c
Modified:
branches/aicom-network-branch/lib/drivers/oskittcp/include/freebsd/src/sys/sys/mbuf.h
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-branch/lib/driver…
==============================================================================
--- branches/aicom-network-branch/lib/drivers/oskittcp/include/freebsd/src/sys/sys/mbuf.h
[iso-8859-1] (original)
+++ branches/aicom-network-branch/lib/drivers/oskittcp/include/freebsd/src/sys/sys/mbuf.h
[iso-8859-1] Sat Jan 30 17:45:22 2010
@@ -55,13 +55,6 @@
#ifndef M_WAITOK
#include <sys/malloc.h>
-#endif
-
-#ifndef OSKIT
-#ifdef __REACTOS__
-/* #define OSKIT */
-#define LOCAL_OSKIT_DEFINED
-#endif
#endif
/*
@@ -301,21 +294,6 @@
} \
)
-#ifdef __REACTOS__
-#define MCLGET(m, how) { \
- OS_DbgPrint(OSK_MID_TRACE,("(MCLGET) m = %x\n", m)); \
- (m)->m_ext.ext_buf = malloc(MCLBYTES,__FILE__,__LINE__); \
- if ((m)->m_ext.ext_buf != NULL) { \
- (m)->m_data = (m)->m_ext.ext_buf; \
- (m)->m_flags |= M_EXT; \
- (m)->m_ext.ext_size = MCLBYTES; \
- } \
- }
-
-#define MCLFREE(p) { \
- free( (p), 0 ); \
- }
-#else
#define MCLGET(m, how) \
{ MCLALLOC((m)->m_ext.ext_buf, (how)); \
OS_DbgPrint(OSK_MID_TRACE,("(MCLGET) m = %x\n", m)); \
@@ -335,7 +313,6 @@
mbstat.m_clfree++; \
} \
)
-#endif
#else
#define MCLGET(m, how) \
{ (m)->m_ext.ext_bufio = oskit_bufio_create(MCLBYTES); \
@@ -557,9 +534,4 @@
#endif
#endif
-#ifdef LOCAL_OSKIT_DEFINED
-#undef LOCAL_OSKIT_DEFINED
-#undef OSKIT
-#endif
-
#endif /* !_SYS_MBUF_H_ */
Modified: branches/aicom-network-branch/lib/drivers/oskittcp/oskittcp/uipc_mbuf.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-branch/lib/driver…
==============================================================================
--- branches/aicom-network-branch/lib/drivers/oskittcp/oskittcp/uipc_mbuf.c [iso-8859-1]
(original)
+++ branches/aicom-network-branch/lib/drivers/oskittcp/oskittcp/uipc_mbuf.c [iso-8859-1]
Sat Jan 30 17:45:22 2010
@@ -365,9 +365,7 @@
#ifdef OSKIT
oskit_bufio_addref(m->m_ext.ext_bufio);
#else
-#ifndef __REACTOS__
mclrefcnt[mtocl(m->m_ext.ext_buf)]++;
-#endif
#endif /* OSKIT */
n->m_ext = m->m_ext;
n->m_flags |= M_EXT;
@@ -729,11 +727,7 @@
if (copy)
copy(cp, mtod(m, caddr_t), (unsigned)len);
else
-#ifdef __REACTOS__
- memcpy(mtod(m, caddr_t), cp, len);
-#else
bcopy(cp, mtod(m, caddr_t), (unsigned)len);
-#endif
cp += len;
*mp = m;
mp = &m->m_next;