diff options
author | stefanf <stefanf@FreeBSD.org> | 2004-08-13 23:22:38 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2004-08-13 23:22:38 +0000 |
commit | e3c005c4cac0665f6e223f553436320222978714 (patch) | |
tree | 8865aad6ade19a2811041819786339987c17e4d0 /lib | |
parent | 75ac991de326de512b930916f7a3f2cadc779210 (diff) | |
download | FreeBSD-src-e3c005c4cac0665f6e223f553436320222978714.zip FreeBSD-src-e3c005c4cac0665f6e223f553436320222978714.tar.gz |
Avoid using void pointers in additive expressions.
PR: 56653 (libc/rpc bits)
Approved by: alfred
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/rpc/clnt_vc.c | 2 | ||||
-rw-r--r-- | lib/libc/rpc/svc_vc.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/rpc/clnt_vc.c b/lib/libc/rpc/clnt_vc.c index 824a855..f1a8e20 100644 --- a/lib/libc/rpc/clnt_vc.c +++ b/lib/libc/rpc/clnt_vc.c @@ -738,7 +738,7 @@ write_vc(ctp, buf, len) } } } else { - for (cnt = len; cnt > 0; cnt -= i, buf += i) { + for (cnt = len; cnt > 0; cnt -= i, buf = (char *)buf + i) { if ((i = _write(ct->ct_fd, buf, (size_t)cnt)) == -1) { ct->ct_error.re_errno = errno; ct->ct_error.re_status = RPC_CANTSEND; diff --git a/lib/libc/rpc/svc_vc.c b/lib/libc/rpc/svc_vc.c index a43adbf..283b250 100644 --- a/lib/libc/rpc/svc_vc.c +++ b/lib/libc/rpc/svc_vc.c @@ -541,7 +541,7 @@ write_vc(xprtp, buf, len) if (cd->nonblock) gettimeofday(&tv0, NULL); - for (cnt = len; cnt > 0; cnt -= i, buf += i) { + for (cnt = len; cnt > 0; cnt -= i, buf = (char *)buf + i) { i = _write(xprt->xp_fd, buf, (size_t)cnt); if (i < 0) { if (errno != EAGAIN || !cd->nonblock) { |