From a8dad419f8a73dd734a84b8c91dd7cbae0163335 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sun, 12 Dec 2004 21:56:08 +0000 Subject: Avoid using void pointers in additive expressions From FreeBSD ok marc@ --- lib/libpthread/uthread/uthread_writev.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/libpthread') 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 * 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; } } -- cgit v1.2.3