Change first argument of m_copydata() back to "struct mbuf *" because
m_copydata() might eventually modify the "mbuf" structure to support lazy mbuf mapping as pointed out by YAMAMOTO Takashi on "tech-net".
This commit is contained in:
parent
a4c79ce346
commit
a40b37b948
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uipc_mbuf.c,v 1.96 2005/06/02 12:58:16 tron Exp $ */
|
||||
/* $NetBSD: uipc_mbuf.c,v 1.97 2005/06/02 15:19:28 tron Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999, 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -668,7 +668,7 @@ nospace:
|
|||
* continuing for "len" bytes, into the indicated buffer.
|
||||
*/
|
||||
void
|
||||
m_copydata(const struct mbuf *m, int off, int len, void *vp)
|
||||
m_copydata(struct mbuf *m, int off, int len, void *vp)
|
||||
{
|
||||
unsigned count;
|
||||
caddr_t cp = vp;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mbuf.h,v 1.109 2005/06/02 10:34:59 tron Exp $ */
|
||||
/* $NetBSD: mbuf.h,v 1.110 2005/06/02 15:19:28 tron Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1999, 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -833,7 +833,7 @@ int m_mballoc(int, int);
|
|||
void m_copyback(struct mbuf *, int, int, const void *);
|
||||
struct mbuf *m_copyback_cow(struct mbuf *, int, int, const void *, int);
|
||||
int m_makewritable(struct mbuf **, int, int, int);
|
||||
void m_copydata(const struct mbuf *, int, int, void *);
|
||||
void m_copydata(struct mbuf *, int, int, void *);
|
||||
void m_freem(struct mbuf *);
|
||||
void m_reclaim(void *, int);
|
||||
void mbinit(void);
|
||||
|
|
Loading…
Reference in New Issue