mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Fix r1.86 (LDAP_DEVEL:SLAP_CONFIG_DELETE): No declarations after code.
This commit is contained in:
parent
1421d522ad
commit
c2a317415c
@ -1111,13 +1111,14 @@ overlay_remove( BackendDB *be, slap_overinst *on )
|
|||||||
{
|
{
|
||||||
slap_overinfo *oi = on->on_info;
|
slap_overinfo *oi = on->on_info;
|
||||||
slap_overinst **oidx;
|
slap_overinst **oidx;
|
||||||
|
BackendInfo *bi_orig;
|
||||||
|
|
||||||
/* remove overlay from oi_list an call db_close and db_destroy
|
/* remove overlay from oi_list an call db_close and db_destroy
|
||||||
* handlers */
|
* handlers */
|
||||||
for ( oidx = &oi->oi_list; *oidx; oidx = &(*oidx)->on_next ) {
|
for ( oidx = &oi->oi_list; *oidx; oidx = &(*oidx)->on_next ) {
|
||||||
if ( *oidx == on ) {
|
if ( *oidx == on ) {
|
||||||
*oidx = on->on_next;
|
*oidx = on->on_next;
|
||||||
BackendInfo *bi_orig = be->bd_info;
|
bi_orig = be->bd_info;
|
||||||
be->bd_info = (BackendInfo *)on;
|
be->bd_info = (BackendInfo *)on;
|
||||||
if ( on->on_bi.bi_db_close ) {
|
if ( on->on_bi.bi_db_close ) {
|
||||||
on->on_bi.bi_db_close( be, NULL );
|
on->on_bi.bi_db_close( be, NULL );
|
||||||
|
Loading…
Reference in New Issue
Block a user