diff options
| author | Stefan Farfeleder <stefanf@FreeBSD.org> | 2004-08-14 17:46:10 +0000 |
|---|---|---|
| committer | Stefan Farfeleder <stefanf@FreeBSD.org> | 2004-08-14 17:46:10 +0000 |
| commit | 4eae39bfdf5f9d66699e50c10b996e75a902d344 (patch) | |
| tree | be6242cdf28f91c19a82810c41a57128a3771413 /lib/libc_r | |
| parent | 6cbea71c828c3ff2fb612997fd1ec0cf66f17393 (diff) | |
Notes
Diffstat (limited to 'lib/libc_r')
| -rw-r--r-- | lib/libc_r/uthread/uthread_write.c | 3 | ||||
| -rw-r--r-- | lib/libc_r/uthread/uthread_writev.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc_r/uthread/uthread_write.c b/lib/libc_r/uthread/uthread_write.c index 573e78e9e4d5..0b1e4a047cc3 100644 --- a/lib/libc_r/uthread/uthread_write.c +++ b/lib/libc_r/uthread/uthread_write.c @@ -78,7 +78,8 @@ _write(int fd, const void *buf, size_t nbytes) */ while (ret == 0) { /* Perform a non-blocking write syscall: */ - n = __sys_write(fd, buf + num, nbytes - num); + n = __sys_write(fd, (const char *)buf + num, + nbytes - num); /* Check if one or more bytes were written: */ if (n > 0) diff --git a/lib/libc_r/uthread/uthread_writev.c b/lib/libc_r/uthread/uthread_writev.c index 77046d574cfc..31d2b8cc1080 100644 --- a/lib/libc_r/uthread/uthread_writev.c +++ b/lib/libc_r/uthread/uthread_writev.c @@ -134,7 +134,9 @@ _writev(int fd, const struct iovec * iov, int iovcnt) * for the next write: */ p_iov[idx].iov_len -= cnt; - p_iov[idx].iov_base += cnt; + p_iov[idx].iov_base = + (char *)p_iov[idx].iov_base + + cnt; cnt = 0; } } |
