From fb06ed88b5810f53d16a2f3f90904ed7ea4de07a Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Tue, 10 Feb 2015 21:56:11 +0000 Subject: 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@ --- sys/dev/sbus/bpp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/sbus/bpp.c') diff --git a/sys/dev/sbus/bpp.c b/sys/dev/sbus/bpp.c index 88f3b21f796..f03f25ca8ba 100644 --- a/sys/dev/sbus/bpp.c +++ b/sys/dev/sbus/bpp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bpp.c,v 1.3 2011/09/18 14:07:45 miod Exp $ */ +/* $OpenBSD: bpp.c,v 1.4 2015/02/10 21:56:09 miod Exp $ */ /* $NetBSD: bpp.c,v 1.25 2005/12/11 12:23:44 christos Exp $ */ /*- @@ -305,7 +305,7 @@ bppwrite(dev_t dev, struct uio *uio, int flags) caddr_t bp = sc->sc_buf; size_t len = min(sc->sc_bufsz, uio->uio_resid); - if ((error = uiomove(bp, len, uio)) != 0) + if ((error = uiomovei(bp, len, uio)) != 0) break; while (len > 0) { -- cgit v1.2.3