mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Avoid using void pointers in additive expressions.
PR: 56653 (libc/rpc bits) Approved by: alfred
This commit is contained in:
parent
26ec2d74aa
commit
361de173a5
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue