diff options
author | des <des@FreeBSD.org> | 2001-10-19 10:08:05 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2001-10-19 10:08:05 +0000 |
commit | f59dae6318d6e23396bf557ef57d63e2833a52d5 (patch) | |
tree | cfd0966d5239e02b11c0eaff4cc5e154718cc455 | |
parent | 220747715aa1f55e0ee13e19b3ecf64ce9d44327 (diff) | |
download | FreeBSD-src-f59dae6318d6e23396bf557ef57d63e2833a52d5.zip FreeBSD-src-f59dae6318d6e23396bf557ef57d63e2833a52d5.tar.gz |
Back out part of previous commit which was gcc-centric
-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 c502e1c..b39839a 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); |