]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9381 - Remove unused variables, fix rc usage
authorQuanah Gibson-Mount <quanah@openldap.org>
Thu, 29 Oct 2020 19:57:04 +0000 (19:57 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 29 Oct 2020 20:09:36 +0000 (20:09 +0000)
libraries/librewrite/params.c

index 9c1d6d5e5e2176fc7e147071ad12b8fee815add1..11068b000020110678db08d18521b108a846eb93 100644 (file)
@@ -102,7 +102,7 @@ rewrite_param_get(
        ldap_pvt_thread_rdwr_runlock( &info->li_params_mutex );
 #endif /* USE_REWRITE_LDAP_PVT_THREADS */
 
-       return REWRITE_SUCCESS;
+       return rc;
 }
 
 static void
@@ -129,15 +129,13 @@ rewrite_param_destroy(
                struct rewrite_info *info
 )
 {
-       int count;
-
        assert( info != NULL );
        
 #ifdef USE_REWRITE_LDAP_PVT_THREADS
        ldap_pvt_thread_rdwr_wlock( &info->li_params_mutex );
 #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;
 
 #ifdef USE_REWRITE_LDAP_PVT_THREADS