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 11:44:04 GMT
trawick     01/06/14 04:44:04

  Modified:    memory/unix apr_sms_blocks.c
  Log:
  can't add to void *; pretend it is char *
  
  Revision  Changes    Path
  1.4       +2 -2      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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- apr_sms_blocks.c	2001/06/14 10:59:18	1.3
  +++ apr_sms_blocks.c	2001/06/14 11:44:03	1.4
  @@ -113,7 +113,7 @@
       }
       
       mem = BLOCKS_T(sms)->ptr;
  -    BLOCKS_T(sms)->ptr += BLOCKS_T(sms)->block_sz;
  +    BLOCKS_T(sms)->ptr = (char *)(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 += BLOCKS_T(sms)->block_sz;
  +    BLOCKS_T(sms)->ptr = (char *)(BLOCKS_T(sms)->ptr) + BLOCKS_T(sms)->block_sz;
   
       if (BLOCKS_T(sms)->ptr > BLOCKS_T(sms)->endp)
           return NULL;
  
  
  

Mime
View raw message