svn commit: r314876 - in head/sys: kern sys
Gleb Smirnoff
glebius at FreeBSD.org
Tue Mar 7 19:00:52 UTC 2017
Author: glebius
Date: Tue Mar 7 19:00:50 2017
New Revision: 314876
URL: https://svnweb.freebsd.org/changeset/base/314876
Log:
m_mbuftouio() doesn't modify the mbuf.
Modified:
head/sys/kern/uipc_mbuf.c
head/sys/sys/mbuf.h
Modified: head/sys/kern/uipc_mbuf.c
==============================================================================
--- head/sys/kern/uipc_mbuf.c Tue Mar 7 19:00:27 2017 (r314875)
+++ head/sys/kern/uipc_mbuf.c Tue Mar 7 19:00:50 2017 (r314876)
@@ -1561,7 +1561,7 @@ m_uiotombuf(struct uio *uio, int how, in
* 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;
Modified: head/sys/sys/mbuf.h
==============================================================================
--- head/sys/sys/mbuf.h Tue Mar 7 19:00:27 2017 (r314875)
+++ head/sys/sys/mbuf.h Tue Mar 7 19:00:50 2017 (r314876)
@@ -614,7 +614,7 @@ struct mbuf *m_getjcl(int, short, int, i
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);
More information about the svn-src-head
mailing list