You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "Victor J. Orlikowski" <v....@gte.net> on 2000/08/24 20:42:38 UTC
[PATCH] iovec annoyances
Okay, this patch is slightly ugly. To avoid a breakage on AIX, we need to
cast the iov_len field of an iovec to a signed long, since that is what
the bucket read functions desire. However, there may is a possibility for
problems in doing this. Anyone have any brighter ideas?
The patch also cleans up the type of a variable.
Index: src/ap/ap_buckets.c
===================================================================
RCS file: /cvs/apache/apache-2.0/src/ap/ap_buckets.c,v
retrieving revision 1.11
diff -u -r1.11 ap_buckets.c
--- ap_buckets.c 2000/08/20 03:33:08 1.11
+++ ap_buckets.c 2000/08/24 18:35:45
@@ -138,7 +138,7 @@
orig = vec;
e = b->head;
while (e && nvec) {
- e->read(e, (const char **)&vec->iov_base, &vec->iov_len, 0);
+ e->read(e, (const char **)&vec->iov_base, (long*)&vec->iov_len, 0);
e = e->next;
--nvec;
++vec;
@@ -208,7 +208,8 @@
*/
char buf[4096];
ap_bucket *r;
- int res, i;
+ int res;
+ long i;
res = apr_vsnprintf(buf, 4096, fmt, va);
--
Victor J. Orlikowski
======================
v.j.orlikowski@gte.net
vjo@raleigh.ibm.com
vjo@us.ibm.com