From 03fea0db7df3f58e49ff147c776b3c6659d88a4d Mon Sep 17 00:00:00 2001 From: Art Yerkes Date: Mon, 20 Sep 2004 04:18:45 +0000 Subject: [PATCH] Royce Mitchell pointed out that we could eliminate these ifdefs if we don't use a uio, and that the uio is not needed because an mbuf can't be partially accepted. svn path=/trunk/; revision=10926 --- reactos/drivers/lib/oskittcp/oskittcp/uipc_socket.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/reactos/drivers/lib/oskittcp/oskittcp/uipc_socket.c b/reactos/drivers/lib/oskittcp/oskittcp/uipc_socket.c index 2180902be2d..155c29e50ad 100644 --- a/reactos/drivers/lib/oskittcp/oskittcp/uipc_socket.c +++ b/reactos/drivers/lib/oskittcp/oskittcp/uipc_socket.c @@ -414,7 +414,6 @@ restart: if (flags & MSG_EOR) top->m_flags |= M_EOR; } else do { -#ifndef __REACTOS__ if (top == 0) { MGETHDR(m, M_WAIT, MT_DATA); mlen = MHLEN; @@ -424,12 +423,6 @@ restart: MGET(m, M_WAIT, MT_DATA); mlen = MLEN; } -#else - MGETHDR(m, M_WAIT, MT_DATA); - mlen = MLEN; - m->m_pkthdr.len = 0; - m->m_pkthdr.rcvif = (struct ifnet *)0; -#endif if (resid >= MINCLSIZE) { MCLGET(m, M_WAIT); if ((m->m_flags & M_EXT) == 0) @@ -447,13 +440,8 @@ nopages: MH_ALIGN(m, len); } space -= len; -#ifndef __REACTOS__ error = uiomove(mtod(m, caddr_t), (int)len, uio); resid = uio->uio_resid; -#else - memcpy(mtod(m, caddr_t), mtod(top, caddr_t), len); - resid = 0; -#endif m->m_len = len; *mp = m; top->m_pkthdr.len += len;