You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by jw...@apache.org on 2002/04/18 20:41:22 UTC

cvs commit: apr-util/buckets apr_buckets_heap.c apr_buckets_pipe.c apr_buckets_simple.c apr_buckets_socket.c

jwoolley    02/04/18 11:41:22

  Modified:    buckets  apr_buckets_heap.c apr_buckets_pipe.c
                        apr_buckets_simple.c apr_buckets_socket.c
  Log:
  Detabify.  These things have been bugging me for ages.
  
  Revision  Changes    Path
  1.44      +11 -11    apr-util/buckets/apr_buckets_heap.c
  
  Index: apr_buckets_heap.c
  ===================================================================
  RCS file: /home/cvs/apr-util/buckets/apr_buckets_heap.c,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -d -u -r1.43 -r1.44
  --- apr_buckets_heap.c	18 Apr 2002 18:34:27 -0000	1.43
  +++ apr_buckets_heap.c	18 Apr 2002 18:41:21 -0000	1.44
  @@ -87,21 +87,21 @@
       h = apr_bucket_alloc(sizeof(*h), b->list);
   
       if (!free_func) {
  -	h->alloc_len = length;
  -	h->base = apr_bucket_alloc(h->alloc_len, b->list);
  -	if (h->base == NULL) {
  -	    apr_bucket_free(h);
  -	    return NULL;
  -	}
  +        h->alloc_len = length;
  +        h->base = apr_bucket_alloc(h->alloc_len, b->list);
  +        if (h->base == NULL) {
  +            apr_bucket_free(h);
  +            return NULL;
  +        }
           h->free_func = apr_bucket_free;
  -	memcpy(h->base, buf, length);
  +        memcpy(h->base, buf, length);
       }
       else {
  -	/* XXX: we lose the const qualifier here which indicates
  +        /* XXX: we lose the const qualifier here which indicates
            * there's something screwy with the API...
  -	 */
  -	h->base = (char *) buf;
  -	h->alloc_len = length;
  +         */
  +        h->base = (char *) buf;
  +        h->alloc_len = length;
           h->free_func = free_func;
       }
   
  
  
  
  1.48      +1 -1      apr-util/buckets/apr_buckets_pipe.c
  
  Index: apr_buckets_pipe.c
  ===================================================================
  RCS file: /home/cvs/apr-util/buckets/apr_buckets_pipe.c,v
  retrieving revision 1.47
  retrieving revision 1.48
  diff -u -d -u -r1.47 -r1.48
  --- apr_buckets_pipe.c	18 Apr 2002 18:34:27 -0000	1.47
  +++ apr_buckets_pipe.c	18 Apr 2002 18:41:21 -0000	1.48
  @@ -78,7 +78,7 @@
       }
   
       if (rv != APR_SUCCESS && rv != APR_EOF) {
  -	apr_bucket_free(buf);
  +        apr_bucket_free(buf);
           return rv;
       }
       /*
  
  
  
  1.40      +5 -3      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.39
  retrieving revision 1.40
  diff -u -d -u -r1.39 -r1.40
  --- apr_buckets_simple.c	18 Apr 2002 18:34:27 -0000	1.39
  +++ apr_buckets_simple.c	18 Apr 2002 18:41:21 -0000	1.40
  @@ -69,7 +69,7 @@
       apr_bucket *b;
   
       if (point > a->length) {
  -	return APR_EINVAL;
  +        return APR_EINVAL;
       }
   
       apr_bucket_simple_copy(a, &b);
  @@ -92,7 +92,8 @@
   }
   
   APU_DECLARE(apr_bucket *) apr_bucket_immortal_make(apr_bucket *b,
  -		const char *buf, apr_size_t length)
  +                                                   const char *buf,
  +                                                   apr_size_t length)
   {
       b->data   = (char *)buf;
       b->length = length;
  @@ -133,7 +134,8 @@
   }
   
   APU_DECLARE(apr_bucket *) apr_bucket_transient_make(apr_bucket *b,
  -		const char *buf, apr_size_t length)
  +                                                    const char *buf,
  +                                                    apr_size_t length)
   {
       b->data   = (char *)buf;
       b->length = length;
  
  
  
  1.38      +1 -1      apr-util/buckets/apr_buckets_socket.c
  
  Index: apr_buckets_socket.c
  ===================================================================
  RCS file: /home/cvs/apr-util/buckets/apr_buckets_socket.c,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -d -u -r1.37 -r1.38
  --- apr_buckets_socket.c	18 Apr 2002 18:34:27 -0000	1.37
  +++ apr_buckets_socket.c	18 Apr 2002 18:41:21 -0000	1.38
  @@ -78,7 +78,7 @@
       }
   
       if (rv != APR_SUCCESS && rv != APR_EOF) {
  -	apr_bucket_free(buf);
  +        apr_bucket_free(buf);
           return rv;
       }
       /*