Commit 30b7617b authored by Bill Stoddard's avatar Bill Stoddard
Browse files

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
parent 9ae68099
Loading
Loading
Loading
Loading
+1 −3
Changes for modules/mappers/mod_rewrite.c: 1 added line, 3 removed lines.
Original line number Diff line number Diff line
@@ -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 */