diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2001-10-19 10:08:05 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2001-10-19 10:08:05 +0000 |
| commit | 93ba13c1bb06bd92c27742f49578129e84f4d7bd (patch) | |
| tree | cfd0966d5239e02b11c0eaff4cc5e154718cc455 /lib/libfetch/common.c | |
| parent | 5577bd2bca6af6eb3cd19ffe5ecaad5d50b4f460 (diff) | |
Notes
Diffstat (limited to 'lib/libfetch/common.c')
| -rw-r--r-- | lib/libfetch/common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libfetch/common.c b/lib/libfetch/common.c index c502e1c00fc1..b39839aa39e6 100644 --- a/lib/libfetch/common.c +++ b/lib/libfetch/common.c @@ -340,9 +340,9 @@ _fetch_putln(int fd, const char *str, size_t len) ssize_t wlen; /* XXX should enforce timeout */ - (const char *)iov[0].iov_base = str; /* XXX */ + iov[0].iov_base = (char *)str; iov[0].iov_len = len; - (const char *)iov[1].iov_base = ENDL; /* XXX */ + iov[1].iov_base = (char *)ENDL; iov[1].iov_len = sizeof ENDL; len += sizeof ENDL; wlen = writev(fd, iov, 2); |
