changeset 2091:0c135c6d644c

* src/sys/kern/kern_subr.c (uiomove): Remove lvalue cast to keep GCC4.x happy.
author asl
date Sun, 23 Oct 2005 20:49:28 +0000
parents 4144fbf5b108
children 197e11324ec8
files packages/net/tcpip/current/ChangeLog packages/net/tcpip/current/src/sys/kern/kern_subr.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/net/tcpip/current/ChangeLog
+++ b/packages/net/tcpip/current/ChangeLog
@@ -1,3 +1,8 @@
+2005-10-23  Andrew Lunn  <andrew.lunn@ascom.ch>
+
+	* src/sys/kern/kern_subr.c (uiomove): Remove lvalue cast to
+	keep GCC4.x happy.
+
 2003-12-10  Gary Thomas  <gary@mlbassoc.com>
 
 	* include/netinet/in.h: Prototype for inet_ntoa_r()
--- a/packages/net/tcpip/current/src/sys/kern/kern_subr.c
+++ b/packages/net/tcpip/current/src/sys/kern/kern_subr.c
@@ -134,7 +134,7 @@ uiomove(cp, n, uio)
 			break;
 #endif
 		}
-		(char *)(iov->iov_base) += cnt;
+                iov->iov_base = (char *)iov->iov_base + cnt;
 		iov->iov_len -= cnt;
 		uio->uio_resid -= cnt;
 		uio->uio_offset += cnt;