summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2005-03-10 08:25:49 +0000
committerstefanf <stefanf@FreeBSD.org>2005-03-10 08:25:49 +0000
commit64a1df7d12d48639fe5030213dcd726c3ef82f76 (patch)
treeea26da572b292005383d98baeb28388826db79d9 /lib/libc/rpc
parentf5134914114b55e7948811dc6f44b83ca1dc7f89 (diff)
downloadFreeBSD-src-64a1df7d12d48639fe5030213dcd726c3ef82f76.zip
FreeBSD-src-64a1df7d12d48639fe5030213dcd726c3ef82f76.tar.gz
Avoid pointer arithmetics on void *.
Approved by: alfred
Diffstat (limited to 'lib/libc/rpc')
-rw-r--r--lib/libc/rpc/clnt_vc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/rpc/clnt_vc.c b/lib/libc/rpc/clnt_vc.c
index 9caa0b2..10780a5 100644
--- a/lib/libc/rpc/clnt_vc.c
+++ b/lib/libc/rpc/clnt_vc.c
@@ -729,7 +729,7 @@ write_vc(ctp, buf, len)
sal = sizeof(sa);
if ((_getpeername(ct->ct_fd, &sa, &sal) == 0) &&
(sa.sa_family == AF_LOCAL)) {
- for (cnt = len; cnt > 0; cnt -= i, buf += i) {
+ for (cnt = len; cnt > 0; cnt -= i, buf = (char *)buf + i) {
if ((i = __msgwrite(ct->ct_fd, buf,
(size_t)cnt)) == -1) {
ct->ct_error.re_errno = errno;
OpenPOWER on IntegriCloud