apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr-util/buckets apr_buckets_simple.c
Date Wed, 28 Feb 2001 02:19:02 GMT
trawick     01/02/27 18:19:02

  Modified:    buckets  apr_buckets_simple.c
  Log:
  Fix some warnings related to the fact that you can't do arithmetic
  with a void *.
  
  Revision  Changes    Path
  1.24      +2 -2      apr-util/buckets/apr_buckets_simple.c
  
  Index: apr_buckets_simple.c
  ===================================================================
  RCS file: /home/cvs/apr-util/buckets/apr_buckets_simple.c,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- apr_buckets_simple.c	2001/02/27 20:45:36	1.23
  +++ apr_buckets_simple.c	2001/02/28 02:19:02	1.24
  @@ -93,7 +93,7 @@
   static apr_status_t simple_read(apr_bucket *b, const char **str, 
   				apr_size_t *len, apr_read_type_e block)
   {
  -    *str = b->data + b->start;
  +    *str = (char *)b->data + b->start;
       *len = b->length;
       return APR_SUCCESS;
   }
  @@ -126,7 +126,7 @@
    */
   static apr_status_t transient_setaside(apr_bucket *b)
   {
  -    b = apr_bucket_heap_make(b, b->data+b->start, b->length, 1, NULL);
  +    b = apr_bucket_heap_make(b, (char *)b->data + b->start, b->length, 1, NULL);
       if (b == NULL) {
           return APR_ENOMEM;
       }
  
  
  

Mime
View raw message