From: Bill Stoddard Date: Mon, 21 Feb 2000 16:41:41 +0000 (+0000) Subject: Make file I/O and network I/O writev/sendv APIs consistent. X-Git-Tag: APACHE_2_0_ALPHA~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1fbede0e012727c94c98935603d365844d3baff0;p=apache Make file I/O and network I/O writev/sendv APIs consistent. Eliminate use of ap_iovec_t and use Posix struct iovec. I never did hear a case (much less a strong case) supporting the need for ap_iovec_t, so out it goes. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84657 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/mappers/mod_rewrite.c b/modules/mappers/mod_rewrite.c index f355382d66..80612e143d 100644 --- a/modules/mappers/mod_rewrite.c +++ b/modules/mappers/mod_rewrite.c @@ -2963,7 +2963,6 @@ static char *lookup_map_program(request_rec *r, ap_file_t *fpin, ap_size_t nbytes; #ifndef NO_WRITEV - ap_iovec_t *iov; struct iovec iova[2]; ap_size_t niov; #endif @@ -2990,9 +2989,8 @@ static char *lookup_map_program(request_rec *r, ap_file_t *fpin, iova[1].iov_base = "\n"; iova[1].iov_len = 1; - ap_make_iov(&iov, iova, r->pool); niov = 2; - ap_writev(fpin, iov, niov, &nbytes); + ap_writev(fpin, iova, niov, &nbytes); #endif /* read in the response value */