Bug #79

ncp patch

Added by slynko over 8 years ago. Updated about 8 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

Hi,

1) Swap m_getm arguments to correct order

ncp.diff Magnifier (766 Bytes) slynko, 01/20/2006 05:57 PM

History

#1 Updated by dillon over 8 years ago

Nice catch! I am going to switch around the m_getm()
argument declarations instead of switching the arguments as
the memory 'how' is typically the last argument for other
calls.

-Matt
Matthew Dillon
<>

:Hi,
:
:1) Swap m_getm arguments to correct order
:
:--------------090804060400040407050500
:Content-Type: text/plain;
: name="ncp.diff"
:Content-Transfer-Encoding: 7bit
:Content-Disposition: inline;
: filename="ncp.diff"
:
:Index: ./netproto/ncp/ncp_rq.c
:===================================================================
:RCS file: /mnt/share/dragonfly-cvs/src/sys/netproto/ncp/ncp_rq.c,v
:retrieving revision 1.9
:diff -u -r1.9 ncp_rq.c
:--- ./netproto/ncp/ncp_rq.c 14 Jan 2006 13:36:40 -0000 1.9
:+++ ./netproto/ncp/ncp_rq.c 20 Jan 2006 17:45:15 -0000
:@@ -158,7 +158,7 @@
: m->m_len += cplen;
: }
: if (size) {
:- m_getm(m, size, MT_DATA, MB_WAIT);
:+ m_getm(m, size, MB_WAIT, MT_DATA);
: while (size > 0){
: m = m->m_next;
: cplen = min(size, M_TRAILINGSPACE(m));
:@@ -191,7 +191,7 @@
: m->m_len += cplen;
: }
: if (size) {
:- m_getm(m, size, MT_DATA, MB_WAIT);
:+ m_getm(m, size, MB_WAIT, MT_DATA);
: while (size > 0){
: m = m->m_next;
: cplen = min(size, M_TRAILINGSPACE(m));

Also available in: Atom PDF