diff options
author | 2015-02-10 21:56:08 +0000 | |
---|---|---|
committer | 2015-02-10 21:56:08 +0000 | |
commit | 081bf72016fd7473d333d95c915b1e43ca17cbc2 (patch) | |
tree | b73603c37a30960dcf8c02fec717a11e3621e769 /sys/dev/usb/usb.c | |
parent | In iwm(4), don't reinvent the standard rate set tables. (diff) | |
download | wireguard-openbsd-081bf72016fd7473d333d95c915b1e43ca17cbc2.tar.xz wireguard-openbsd-081bf72016fd7473d333d95c915b1e43ca17cbc2.zip |
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/dev/usb/usb.c')
-rw-r--r-- | sys/dev/usb/usb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/usb/usb.c b/sys/dev/usb/usb.c index 5dcf89099eb..fc175c0c84b 100644 --- a/sys/dev/usb/usb.c +++ b/sys/dev/usb/usb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: usb.c,v 1.105 2015/02/09 12:45:12 uebayasi Exp $ */ +/* $OpenBSD: usb.c,v 1.106 2015/02/10 21:56:09 miod Exp $ */ /* $NetBSD: usb.c,v 1.77 2003/01/01 00:10:26 thorpej Exp $ */ /* @@ -643,7 +643,7 @@ usbioctl(dev_t devt, u_long cmd, caddr_t data, int flag, struct proc *p) uio.uio_procp = p; ptr = malloc(len, M_TEMP, M_WAITOK); if (uio.uio_rw == UIO_WRITE) { - error = uiomove(ptr, len, &uio); + error = uiomovei(ptr, len, &uio); if (error) goto ret; } @@ -660,7 +660,7 @@ usbioctl(dev_t devt, u_long cmd, caddr_t data, int flag, struct proc *p) len = ur->ucr_actlen; if (len != 0) { if (uio.uio_rw == UIO_READ) { - error = uiomove(ptr, len, &uio); + error = uiomovei(ptr, len, &uio); if (error) goto ret; } @@ -788,7 +788,7 @@ usbioctl(dev_t devt, u_long cmd, caddr_t data, int flag, struct proc *p) uio.uio_segflg = UIO_USERSPACE; uio.uio_rw = UIO_READ; uio.uio_procp = p; - error = uiomove((void *)cdesc, len, &uio); + error = uiomovei((void *)cdesc, len, &uio); free(cdesc, M_TEMP, 0); return (error); } |