httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Victor J. Orlikowski" <v.j.orlikow...@gte.net>
Subject [PATCH] iovec annoyances
Date Thu, 24 Aug 2000 18:42:38 GMT
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


Mime
View raw message