diff options
author | 2016-02-06 16:10:23 +0000 | |
---|---|---|
committer | 2016-02-06 16:10:23 +0000 | |
commit | 653068cab9c54c50c10c99ab288154c09b02e04f (patch) | |
tree | 37069601b888be7e64c41e43fd16fc46d5c85d7b /sys/tmpfs/tmpfs_subr.c | |
parent | Add support for the 9 series PCH. (diff) | |
download | wireguard-openbsd-653068cab9c54c50c10c99ab288154c09b02e04f.tar.xz wireguard-openbsd-653068cab9c54c50c10c99ab288154c09b02e04f.zip |
Convert to uiomove. From Martin Natano.
Diffstat (limited to 'sys/tmpfs/tmpfs_subr.c')
-rw-r--r-- | sys/tmpfs/tmpfs_subr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/tmpfs/tmpfs_subr.c b/sys/tmpfs/tmpfs_subr.c index ce21637c541..bcbad5ed2b6 100644 --- a/sys/tmpfs/tmpfs_subr.c +++ b/sys/tmpfs/tmpfs_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tmpfs_subr.c,v 1.14 2015/04/17 04:43:21 guenther Exp $ */ +/* $OpenBSD: tmpfs_subr.c,v 1.15 2016/02/06 16:10:23 stefan Exp $ */ /* $NetBSD: tmpfs_subr.c,v 1.79 2012/03/13 18:40:50 elad Exp $ */ /* @@ -740,7 +740,7 @@ tmpfs_dir_getdotents(tmpfs_node_t *node, struct dirent *dp, struct uio *uio) return EJUSTRETURN; } - if ((error = uiomovei(dp, dp->d_reclen, uio)) != 0) { + if ((error = uiomove(dp, dp->d_reclen, uio)) != 0) { return error; } @@ -837,7 +837,7 @@ tmpfs_dir_getdents(tmpfs_node_t *node, struct uio *uio) } /* Copy out the directory entry and continue. */ - error = uiomovei(&dent, dent.d_reclen, uio); + error = uiomove(&dent, dent.d_reclen, uio); if (error) { break; } @@ -1225,7 +1225,7 @@ tmpfs_uiomove(tmpfs_node_t *node, struct uio *uio, vsize_t len) if (pgoff + len < PAGE_SIZE) { va = tmpfs_uio_lookup(node, pgnum); if (va != (vaddr_t)NULL) - return uiomovei((void *)va + pgoff, len, uio); + return uiomove((void *)va + pgoff, len, uio); } if (len >= TMPFS_UIO_MAXBYTES) { @@ -1249,7 +1249,7 @@ tmpfs_uiomove(tmpfs_node_t *node, struct uio *uio, vsize_t len) return error; } - error = uiomovei((void *)va + pgoff, sz, uio); + error = uiomove((void *)va + pgoff, sz, uio); if (error == 0 && pgoff + sz < PAGE_SIZE) tmpfs_uio_cache(node, pgnum, va); else |