From f59dae6318d6e23396bf557ef57d63e2833a52d5 Mon Sep 17 00:00:00 2001 From: des Date: Fri, 19 Oct 2001 10:08:05 +0000 Subject: Back out part of previous commit which was gcc-centric --- lib/libfetch/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libfetch/common.c') 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); -- cgit v1.1