summaryrefslogtreecommitdiff
path: root/lib/libpthread
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2004-12-12 21:56:08 +0000
committerBrad Smith <brad@cvs.openbsd.org>2004-12-12 21:56:08 +0000
commita8dad419f8a73dd734a84b8c91dd7cbae0163335 (patch)
tree469cbb968d5303bd7fde35ef852d05c3f9c47564 /lib/libpthread
parent55be719a4d406a2edbe93ea78ba74b1122ac1eb0 (diff)
Avoid using void pointers in additive expressions
From FreeBSD ok marc@
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/uthread/uthread_writev.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libpthread/uthread/uthread_writev.c b/lib/libpthread/uthread/uthread_writev.c
index 6d1981f4461..020868ab58f 100644
--- a/lib/libpthread/uthread/uthread_writev.c
+++ b/lib/libpthread/uthread/uthread_writev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uthread_writev.c,v 1.9 2004/11/30 00:14:51 pat Exp $ */
+/* $OpenBSD: uthread_writev.c,v 1.10 2004/12/12 21:56:07 brad Exp $ */
/*
* Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au>
* All rights reserved.
@@ -141,7 +141,9 @@ writev(int fd, const struct iovec * iov, int iovcnt)
* for the next write:
*/
p_iov[idx].iov_len -= cnt;
- (char *)p_iov[idx].iov_base += cnt;
+ p_iov[idx].iov_base =
+ (char *)p_iov[idx].iov_base
+ + cnt;
cnt = 0;
}
}