apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject cvs commit: apr-util/buckets apr_buckets_mmap.c
Date Thu, 29 Nov 2001 21:14:25 GMT
jerenkrantz    01/11/29 13:14:25

  Modified:    buckets  apr_buckets_mmap.c
  Log:
  Style changes.
  
  Revision  Changes    Path
  1.46      +10 -8     apr-util/buckets/apr_buckets_mmap.c
  
  Index: apr_buckets_mmap.c
  ===================================================================
  RCS file: /home/cvs/apr-util/buckets/apr_buckets_mmap.c,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- apr_buckets_mmap.c	2001/11/29 01:20:56	1.45
  +++ apr_buckets_mmap.c	2001/11/29 21:14:25	1.46
  @@ -60,7 +60,7 @@
   #if APR_HAS_MMAP
   
   static apr_status_t mmap_read(apr_bucket *b, const char **str, 
  -			      apr_size_t *length, apr_read_type_e block)
  +                              apr_size_t *length, apr_read_type_e block)
   {
       apr_bucket_mmap *m = b->data;
       apr_status_t ok;
  @@ -68,7 +68,7 @@
       
       ok = apr_mmap_offset(&addr, m->mmap, b->start);
       if (ok != APR_SUCCESS) {
  -	return ok;
  +        return ok;
       }
       *str = addr;
       *length = b->length;
  @@ -90,26 +90,28 @@
   /*
    * XXX: are the start and length arguments useful?
    */
  -APU_DECLARE(apr_bucket *) apr_bucket_mmap_make(apr_bucket *b,
  -		apr_mmap_t *mm, apr_off_t start, apr_size_t length)
  +APU_DECLARE(apr_bucket *) apr_bucket_mmap_make(apr_bucket *b, apr_mmap_t *mm, 
  +                                               apr_off_t start, 
  +                                               apr_size_t length)
   {
       apr_bucket_mmap *m;
   
       m = malloc(sizeof(*m));
       if (m == NULL) {
  -	return NULL;
  +        return NULL;
       }
       m->mmap = mm;
   
       b = apr_bucket_shared_make(b, m, start, length);
  -    b->type     = &apr_bucket_type_mmap;
  +    b->type = &apr_bucket_type_mmap;
   
       return b;
   }
   
   
  -APU_DECLARE(apr_bucket *) apr_bucket_mmap_create(
  -		apr_mmap_t *mm, apr_off_t start, apr_size_t length)
  +APU_DECLARE(apr_bucket *) apr_bucket_mmap_create(apr_mmap_t *mm, 
  +                                                 apr_off_t start, 
  +                                                 apr_size_t length)
   {
       apr_bucket *b = (apr_bucket *)malloc(sizeof(*b));
   
  
  
  

Mime
View raw message