Date: Tue, 7 Mar 2017 19:00:51 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r314876 - in head/sys: kern sys Message-ID: <201703071900.v27J0pPH005582@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703071900.v27J0pPH005582>