apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr/memory/unix apr_sms_blocks.c
Date Thu, 14 Jun 2001 12:03:28 GMT
trawick     01/06/14 05:03:28

  Modified:    memory/unix apr_sms_blocks.c
  Log:
  change type of ptr and endp fields in apr_sms_blocks_t for easy ptr
  arithmetic
  
  Submitted by:	Sander Striker
  
  Revision  Changes    Path
  1.5       +4 -4      apr/memory/unix/apr_sms_blocks.c
  
  Index: apr_sms_blocks.c
  ===================================================================
  RCS file: /home/cvs/apr/memory/unix/apr_sms_blocks.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- apr_sms_blocks.c	2001/06/14 11:44:03	1.4
  +++ apr_sms_blocks.c	2001/06/14 12:03:27	1.5
  @@ -89,8 +89,8 @@
   {
       apr_sms_t            header;
       apr_size_t           block_sz;
  -    void                *ptr;
  -    void                *endp;
  +    char                *ptr;
  +    char                *endp;
       block_t             *free_list;
       apr_lock_t          *lock;
   };
  @@ -113,7 +113,7 @@
       }
       
       mem = BLOCKS_T(sms)->ptr;
  -    BLOCKS_T(sms)->ptr = (char *)(BLOCKS_T(sms)->ptr) + BLOCKS_T(sms)->block_sz;
  +    BLOCKS_T(sms)->ptr += BLOCKS_T(sms)->block_sz;
   
       if (BLOCKS_T(sms)->ptr > BLOCKS_T(sms)->endp)
           return NULL;
  @@ -135,7 +135,7 @@
       }
       
       mem = BLOCKS_T(sms)->ptr;
  -    BLOCKS_T(sms)->ptr = (char *)(BLOCKS_T(sms)->ptr) + BLOCKS_T(sms)->block_sz;
  +    BLOCKS_T(sms)->ptr += BLOCKS_T(sms)->block_sz;
   
       if (BLOCKS_T(sms)->ptr > BLOCKS_T(sms)->endp)
           return NULL;
  
  
  

Mime
View raw message