apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r588062 - /apr/apr-util/trunk/buckets/apr_brigade.c
Date Wed, 24 Oct 2007 22:29:11 GMT
Author: wrowe
Date: Wed Oct 24 15:29:11 2007
New Revision: 588062

URL: http://svn.apache.org/viewvc?rev=588062&view=rev
Log:
Adopt 1.3.0 trunk's new constant.

Modified:
    apr/apr-util/trunk/buckets/apr_brigade.c

Modified: apr/apr-util/trunk/buckets/apr_brigade.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/buckets/apr_brigade.c?rev=588062&r1=588061&r2=588062&view=diff
==============================================================================
--- apr/apr-util/trunk/buckets/apr_brigade.c (original)
+++ apr/apr-util/trunk/buckets/apr_brigade.c Wed Oct 24 15:29:11 2007
@@ -29,12 +29,6 @@
 #include <sys/uio.h>
 #endif
 
-/* TODO: ~((apr_size_t)0) appears to be the best way to quickly 
- * represent  MAX_APR_SIZE_T for any CPU we support.  Move this
- * out as APR_MAX_SIZE_T to our public headers...
- */
-#define MAX_APR_SIZE_T (~((apr_size_t)0))
-
 static apr_status_t brigade_cleanup(void *data) 
 {
     return apr_brigade_cleanup(data);
@@ -123,7 +117,7 @@
         /* For an unknown length bucket, while 'point' is beyond the possible
          * size contained in apr_size_t, read and continue...
          */
-        if ((e->length == (apr_size_t)(-1)) && (point > MAX_APR_SIZE_T)) {
+        if ((e->length == (apr_size_t)(-1)) && (point > APR_SIZE_MAX)) {
             /* point is too far out to simply split this bucket,
              * we must fix this bucket's size and keep going... */
             rv = apr_bucket_read(e, &s, &len, APR_BLOCK_READ);



Mime
View raw message