apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject cvs commit: apr/locks/unix proc_mutex.c
Date Mon, 14 Jun 2004 12:16:23 GMT
jorton      2004/06/14 05:16:23

  Modified:    locks/unix proc_mutex.c
  Log:
  * locks/unix/proc_mutex.c (apr_proc_mutex_create): Remove redundant
  NULL-initialization of zero-initialized field; remove redundant cast.
  
  Revision  Changes    Path
  1.48      +2 -7      apr/locks/unix/proc_mutex.c
  
  Index: proc_mutex.c
  ===================================================================
  RCS file: /home/cvs/apr/locks/unix/proc_mutex.c,v
  retrieving revision 1.47
  retrieving revision 1.48
  diff -d -w -u -r1.47 -r1.48
  --- proc_mutex.c	14 Jun 2004 12:04:42 -0000	1.47
  +++ proc_mutex.c	14 Jun 2004 12:16:23 -0000	1.48
  @@ -765,13 +765,8 @@
       apr_proc_mutex_t *new_mutex;
       apr_status_t rv;
   
  -    new_mutex = (apr_proc_mutex_t *)apr_pcalloc(pool,
  -                                                sizeof(apr_proc_mutex_t));
  -
  +    new_mutex = apr_pcalloc(pool, sizeof(apr_proc_mutex_t));
       new_mutex->pool  = pool;
  -#if APR_HAS_SYSVSEM_SERIALIZE || APR_HAS_FCNTL_SERIALIZE || APR_HAS_FLOCK_SERIALIZE ||
APR_HAS_POSIXSEM_SERIALIZE
  -    new_mutex->interproc = NULL;
  -#endif
   
       if ((rv = proc_mutex_create(new_mutex, mech, fname)) != APR_SUCCESS)
           return rv;
  
  
  

Mime
View raw message