You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bj...@apache.org on 2002/11/23 01:47:41 UTC

cvs commit: apr/locks/os2 proc_mutex.c

bjh         2002/11/22 16:47:40

  Modified:    locks/os2 proc_mutex.c
  Log:
  OS/2: Make apr_proc_mutex_cleanup() public to match recent API change.
  
  Revision  Changes    Path
  1.10      +3 -3      apr/locks/os2/proc_mutex.c
  
  Index: proc_mutex.c
  ===================================================================
  RCS file: /home/cvs/apr/locks/os2/proc_mutex.c,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- proc_mutex.c	7 Jun 2002 14:04:34 -0000	1.9
  +++ proc_mutex.c	23 Nov 2002 00:47:40 -0000	1.10
  @@ -87,7 +87,7 @@
   
   
   
  -static apr_status_t proc_mutex_cleanup(void *vmutex)
  +APR_DECLARE(apr_status_t) apr_proc_mutex_cleanup(void *vmutex)
   {
       apr_proc_mutex_t *mutex = vmutex;
       return apr_proc_mutex_destroy(mutex);
  @@ -127,7 +127,7 @@
       rc = DosCreateMutexSem(semname, &(new->hMutex), DC_SEM_SHARED, FALSE);
   
       if (!rc) {
  -        apr_pool_cleanup_register(pool, new, proc_mutex_cleanup, apr_pool_cleanup_null);
  +        apr_pool_cleanup_register(pool, new, apr_proc_mutex_cleanup, apr_pool_cleanup_null);
       }
   
       return APR_FROM_OS_ERROR(rc);
  @@ -153,7 +153,7 @@
       *mutex = new;
   
       if (!rc) {
  -        apr_pool_cleanup_register(pool, new, proc_mutex_cleanup, apr_pool_cleanup_null);
  +        apr_pool_cleanup_register(pool, new, apr_proc_mutex_cleanup, apr_pool_cleanup_null);
       }
   
       return APR_FROM_OS_ERROR(rc);