m_mbuftouio() doesn't modify the mbuf.
This commit is contained in:
parent
982ee4e2f5
commit
14984031b7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=314876
@ -1561,7 +1561,7 @@ m_uiotombuf(struct uio *uio, int how, int len, int align, int flags)
|
||||
* Copy an mbuf chain into a uio limited by len if set.
|
||||
*/
|
||||
int
|
||||
m_mbuftouio(struct uio *uio, struct mbuf *m, int len)
|
||||
m_mbuftouio(struct uio *uio, const struct mbuf *m, int len)
|
||||
{
|
||||
int error, length, total;
|
||||
int progress = 0;
|
||||
|
@ -614,7 +614,7 @@ struct mbuf *m_getjcl(int, short, int, int);
|
||||
struct mbuf *m_getm2(struct mbuf *, int, int, short, int);
|
||||
struct mbuf *m_getptr(struct mbuf *, int, int *);
|
||||
u_int m_length(struct mbuf *, struct mbuf **);
|
||||
int m_mbuftouio(struct uio *, struct mbuf *, int);
|
||||
int m_mbuftouio(struct uio *, const struct mbuf *, int);
|
||||
void m_move_pkthdr(struct mbuf *, struct mbuf *);
|
||||
int m_pkthdr_init(struct mbuf *, int);
|
||||
struct mbuf *m_prepend(struct mbuf *, int, int);
|
||||
|
Loading…
Reference in New Issue
Block a user