apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stri...@apache.org
Subject cvs commit: apr/memory/unix apr_sms_trivial.c
Date Thu, 12 Jul 2001 16:57:57 GMT
striker     01/07/12 09:57:57

  Modified:    memory/unix apr_sms_trivial.c
  Log:
  Fix up the min_free setting in the create function is a way that it
  always reserves enough extra space to fit the node header.
  
  Revision  Changes    Path
  1.16      +3 -1      apr/memory/unix/apr_sms_trivial.c
  
  Index: apr_sms_trivial.c
  ===================================================================
  RCS file: /home/cvs/apr/memory/unix/apr_sms_trivial.c,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- apr_sms_trivial.c	2001/07/07 12:26:32	1.15
  +++ apr_sms_trivial.c	2001/07/12 16:57:52	1.16
  @@ -485,7 +485,9 @@
       
       min_alloc = APR_ALIGN_DEFAULT(min_alloc);
       min_free  = APR_ALIGN_DEFAULT(min_free);
  -
  +    if (min_free < SIZEOF_NODE_T)
  +        min_free = SIZEOF_NODE_T;
  +    
       /* We're not a top level module, ie we have a parent, so
        * we allocate the memory for the structure from our parent.
        * This is safe as we shouldn't outlive our parent...
  
  
  

Mime
View raw message