diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2015-02-10 21:56:11 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2015-02-10 21:56:11 +0000 |
commit | fb06ed88b5810f53d16a2f3f90904ed7ea4de07a (patch) | |
tree | 0ad268ca945306e22e87692f6bb02fcd1220d0e4 /sys/net/ppp_tty.c | |
parent | 4ed4205fc6bdb404dcf67f9f19347eea957f5982 (diff) |
First step towards making uiomove() take a size_t size argument:
- rename uiomove() to uiomovei() and update all its users.
- introduce uiomove(), which is similar to uiomovei() but with a size_t.
- rewrite uiomovei() as an uiomove() wrapper.
ok kettenis@
Diffstat (limited to 'sys/net/ppp_tty.c')
-rw-r--r-- | sys/net/ppp_tty.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/ppp_tty.c b/sys/net/ppp_tty.c index 673448da819..6b104298023 100644 --- a/sys/net/ppp_tty.c +++ b/sys/net/ppp_tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ppp_tty.c,v 1.30 2014/12/05 15:50:04 mpi Exp $ */ +/* $OpenBSD: ppp_tty.c,v 1.31 2015/02/10 21:56:10 miod Exp $ */ /* $NetBSD: ppp_tty.c,v 1.12 1997/03/24 21:23:10 christos Exp $ */ /* @@ -329,7 +329,7 @@ pppread(struct tty *tp, struct uio *uio, int flag) splx(s); for (m = m0; m && uio->uio_resid; m = m->m_next) - if ((error = uiomove(mtod(m, u_char *), m->m_len, uio)) != 0) + if ((error = uiomovei(mtod(m, u_char *), m->m_len, uio)) != 0) break; m_freem(m0); return (error); @@ -369,7 +369,7 @@ pppwrite(struct tty *tp, struct uio *uio, int flag) len = M_TRAILINGSPACE(m); if (len > uio->uio_resid) len = uio->uio_resid; - if ((error = uiomove(mtod(m, u_char *), len, uio)) != 0) { + if ((error = uiomovei(mtod(m, u_char *), len, uio)) != 0) { m_freem(m0); return (error); } |