apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dr...@apache.org
Subject cvs commit: apr/memory/unix apr_sms_trivial.c
Date Wed, 04 Jul 2001 18:44:01 GMT
dreid       01/07/04 11:44:01

  Modified:    memory/unix apr_sms_trivial.c
  Log:
  Remove a bunch of warning from the trivial sms.
  
  Revision  Changes    Path
  1.11      +13 -11    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.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- apr_sms_trivial.c	2001/07/04 18:25:58	1.10
  +++ apr_sms_trivial.c	2001/07/04 18:44:00	1.11
  @@ -441,18 +441,12 @@
   }
   #endif /* APR_HAS_THREADS */
   
  -APR_DECLARE(apr_status_t) apr_sms_trivial_create(apr_sms_t **sms, 
  -                                                  apr_sms_t *pms)
  +static apr_status_t apr_sms_trivial_create_ex(apr_sms_t **sms, 
  +                                              apr_sms_t *pms,
  +                                              apr_size_t min_alloc,
  +                                              apr_size_t min_free,
  +                                              apr_size_t max_free)
   {
  -    return apr_sms_trivial_create_ex(sms, pms, MIN_ALLOC, MIN_FREE, MAX_FREE);
  -}
  -
  -APR_DECLARE(apr_status_t) apr_sms_trivial_create_ex(apr_sms_t **sms, 
  -                                                    apr_sms_t *pms,
  -                                                    apr_size_t min_alloc,
  -                                                    apr_size_t min_free,
  -                                                    apr_size_t max_free)
  -{
       apr_sms_t *new_sms;
       apr_sms_trivial_t *tms;
       node_t *node;
  @@ -507,3 +501,11 @@
       *sms = new_sms;
       return APR_SUCCESS;
   }
  +
  +
  +APR_DECLARE(apr_status_t) apr_sms_trivial_create(apr_sms_t **sms, 
  +                                                  apr_sms_t *pms)
  +{
  +    return apr_sms_trivial_create_ex(sms, pms, MIN_ALLOC, MIN_FREE, MAX_FREE);
  +}
  +
  
  
  

Mime
View raw message