Skip to content

Commit

Permalink
* locks/unix/global_mutex.c (apr_global_mutex_child_init,
Browse files Browse the repository at this point in the history
  apr_global_mutex_perms_set): Simplify code, no functional change.


git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1918256 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
notroj committed Jun 11, 2024
1 parent 22a4db1 commit 32ab098
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions locks/unix/global_mutex.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,7 @@ APR_DECLARE(apr_status_t) apr_global_mutex_child_init(
const char *fname,
apr_pool_t *pool)
{
apr_status_t rv;

rv = apr_proc_mutex_child_init(&((*mutex)->proc_mutex), fname, pool);
return rv;
return apr_proc_mutex_child_init(&((*mutex)->proc_mutex), fname, pool);
}

APR_DECLARE(apr_status_t) apr_global_mutex_lock(apr_global_mutex_t *mutex)
Expand Down Expand Up @@ -230,11 +227,9 @@ APR_DECLARE(const char *) apr_global_mutex_name(apr_global_mutex_t *mutex)

APR_PERMS_SET_IMPLEMENT(global_mutex)
{
apr_status_t rv;
apr_global_mutex_t *mutex = (apr_global_mutex_t *)theglobal_mutex;

rv = APR_PERMS_SET_FN(proc_mutex)(mutex->proc_mutex, perms, uid, gid);
return rv;
return APR_PERMS_SET_FN(proc_mutex)(mutex->proc_mutex, perms, uid, gid);
}

APR_POOL_IMPLEMENT_ACCESSOR(global_mutex)
Expand Down

0 comments on commit 32ab098

Please sign in to comment.