mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 07:39:35 -05:00
ITS#9381 - Remove unused variables, fix rc usage
This commit is contained in:
parent
2f0883d161
commit
ef893fffad
1 changed files with 2 additions and 4 deletions
|
|
@ -102,7 +102,7 @@ rewrite_param_get(
|
||||||
ldap_pvt_thread_rdwr_runlock( &info->li_params_mutex );
|
ldap_pvt_thread_rdwr_runlock( &info->li_params_mutex );
|
||||||
#endif /* USE_REWRITE_LDAP_PVT_THREADS */
|
#endif /* USE_REWRITE_LDAP_PVT_THREADS */
|
||||||
|
|
||||||
return REWRITE_SUCCESS;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
@ -129,15 +129,13 @@ rewrite_param_destroy(
|
||||||
struct rewrite_info *info
|
struct rewrite_info *info
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
int count;
|
|
||||||
|
|
||||||
assert( info != NULL );
|
assert( info != NULL );
|
||||||
|
|
||||||
#ifdef USE_REWRITE_LDAP_PVT_THREADS
|
#ifdef USE_REWRITE_LDAP_PVT_THREADS
|
||||||
ldap_pvt_thread_rdwr_wlock( &info->li_params_mutex );
|
ldap_pvt_thread_rdwr_wlock( &info->li_params_mutex );
|
||||||
#endif /* USE_REWRITE_LDAP_PVT_THREADS */
|
#endif /* USE_REWRITE_LDAP_PVT_THREADS */
|
||||||
|
|
||||||
count = avl_free( info->li_params, rewrite_param_free );
|
avl_free( info->li_params, rewrite_param_free );
|
||||||
info->li_params = NULL;
|
info->li_params = NULL;
|
||||||
|
|
||||||
#ifdef USE_REWRITE_LDAP_PVT_THREADS
|
#ifdef USE_REWRITE_LDAP_PVT_THREADS
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue