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.c
Date Wed, 06 Jun 2001 21:49:02 GMT
dreid       01/06/06 14:49:02

  Modified:    memory/unix apr_sms.c
  Log:
  If we don't have a lock and unlock function in an sms module then
  it's not an error as this is allowed.  Add a comment to this effect
  to make it clearer.
  
  Revision  Changes    Path
  1.14      +8 -2      apr/memory/unix/apr_sms.c
  
  Index: apr_sms.c
  ===================================================================
  RCS file: /home/cvs/apr/memory/unix/apr_sms.c,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- apr_sms.c	2001/06/05 09:30:37	1.13
  +++ apr_sms.c	2001/06/06 21:49:00	1.14
  @@ -466,16 +466,22 @@
   
   APR_DECLARE(apr_status_t) apr_sms_lock(apr_sms_t *mem_sys)
   {
  +    /* If we don't have a lock_fn then we probably don't need one,
  +     * so this is OK and we just return APR_SUCCESS
  +     */
       if (!mem_sys->lock_fn)
  -        return APR_ENOTIMPL;
  +        return APR_SUCCESS;
   
       return mem_sys->lock_fn(mem_sys);
   }
   
   APR_DECLARE(apr_status_t) apr_sms_unlock(apr_sms_t *mem_sys)
   {
  +    /* If we don't have a lock_fn then we probably don't need one,
  +     * so this is OK and we just return APR_SUCCESS
  +     */
       if (!mem_sys->unlock_fn)
  -        return APR_ENOTIMPL;
  +        return APR_SUCCESS;
           
       return mem_sys->unlock_fn(mem_sys);
   }
  
  
  

Mime
View raw message