Project

General

Profile

Actions

Bug #79

closed

ncp patch

Added by slynko over 18 years ago. Updated over 17 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Hi,

1) Swap m_getm arguments to correct order


Files

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

Updated by dillon over 18 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));

Actions

Also available in: Atom PDF