summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2003-03-02 15:29:13 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2003-03-02 15:29:13 +0000
commitd5279f20c5747addc29c63b7748ba5d60f53259d (patch)
tree3d0912e36e74a2ab2e21179eede696a320e16a33 /sys/kern
parentf9be0dee1e100ca1ee75501b87b184b40b1000ae (diff)
Notes
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_subr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/kern_subr.c b/sys/kern/kern_subr.c
index c8d3ed07a131..a4bbcee1c7bb 100644
--- a/sys/kern/kern_subr.c
+++ b/sys/kern/kern_subr.c
@@ -126,7 +126,7 @@ vm_pgmoveco(vm_map_t mapa, vm_object_t srcobj, vm_offset_t kaddr,
#endif /* ZERO_COPY_SOCKETS */
int
-uiomove(caddr_t cp, int n, struct uio *uio)
+uiomove(void *cp, int n, struct uio *uio)
{
struct thread *td = curthread;
struct iovec *iov;
@@ -183,7 +183,7 @@ uiomove(caddr_t cp, int n, struct uio *uio)
iov->iov_len -= cnt;
uio->uio_resid -= cnt;
uio->uio_offset += cnt;
- cp += cnt;
+ cp = (char *)cp + cnt;
n -= cnt;
}
out:
@@ -202,7 +202,7 @@ out:
* Experimental support for zero-copy I/O
*/
static int
-userspaceco(caddr_t cp, u_int cnt, struct uio *uio, struct vm_object *obj,
+userspaceco(void *cp, u_int cnt, struct uio *uio, struct vm_object *obj,
int disposable)
{
struct iovec *iov;
@@ -281,7 +281,7 @@ userspaceco(caddr_t cp, u_int cnt, struct uio *uio, struct vm_object *obj,
}
int
-uiomoveco(caddr_t cp, int n, struct uio *uio, struct vm_object *obj,
+uiomoveco(void *cp, int n, struct uio *uio, struct vm_object *obj,
int disposable)
{
struct iovec *iov;
@@ -329,7 +329,7 @@ uiomoveco(caddr_t cp, int n, struct uio *uio, struct vm_object *obj,
iov->iov_len -= cnt;
uio->uio_resid -= cnt;
uio->uio_offset += cnt;
- cp += cnt;
+ cp = (char *)cp + cnt;
n -= cnt;
}
return (0);