diff options
author | stefanf <stefanf@FreeBSD.org> | 2005-03-10 08:25:49 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2005-03-10 08:25:49 +0000 |
commit | 64a1df7d12d48639fe5030213dcd726c3ef82f76 (patch) | |
tree | ea26da572b292005383d98baeb28388826db79d9 /lib | |
parent | f5134914114b55e7948811dc6f44b83ca1dc7f89 (diff) | |
download | FreeBSD-src-64a1df7d12d48639fe5030213dcd726c3ef82f76.zip FreeBSD-src-64a1df7d12d48639fe5030213dcd726c3ef82f76.tar.gz |
Avoid pointer arithmetics on void *.
Approved by: alfred
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/rpc/clnt_vc.c | 2 |
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; |