]> granicus.if.org Git - apache/commitdiff
Make file I/O and network I/O writev/sendv APIs consistent.
authorBill Stoddard <stoddard@apache.org>
Mon, 21 Feb 2000 16:41:41 +0000 (16:41 +0000)
committerBill Stoddard <stoddard@apache.org>
Mon, 21 Feb 2000 16:41:41 +0000 (16:41 +0000)
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

modules/mappers/mod_rewrite.c

index f355382d669a836f88d8a0cca384b91b2c980f76..80612e143d468f32e28ac76c56d9edf094cb0686 100644 (file)
@@ -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 */