X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fback-ldbm%2Fattr.c;h=6bfa9824b4a12a096fe6e6b15697924b852d99be;hb=82540c5cc1be5bf17b22f3a41d12d1bc56180654;hp=8241e12601d1fc0c572f281dbb20d65de40ce077;hpb=0bfaa8b4aefebb921ef22b433c2f929f4e6ae109;p=openldap diff --git a/servers/slapd/back-ldbm/attr.c b/servers/slapd/back-ldbm/attr.c index 8241e12601..6bfa9824b4 100644 --- a/servers/slapd/back-ldbm/attr.c +++ b/servers/slapd/back-ldbm/attr.c @@ -1,7 +1,7 @@ /* attr.c - backend routines for dealing with attributes */ /* $OpenLDAP$ */ /* - * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved. + * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved. * COPYING RESTRICTIONS APPLY, see COPYRIGHT file */ @@ -15,7 +15,6 @@ #include "slap.h" #include "back-ldbm.h" - /* for the cache of attribute information (which are indexed, etc.) */ typedef struct ldbm_attrinfo { AttributeDescription *ai_desc; /* attribute description cn;lang-en */ @@ -182,11 +181,11 @@ attr_index_config( } #ifdef NEW_LOGGING - LDAP_LOG(( "backend", LDAP_LEVEL_DETAIL1, - "attr_index_config: index %s 0x%04x\n", - ad->ad_cname.bv_val, mask )); + LDAP_LOG( BACK_LDBM, DETAIL1, + "attr_index_config: index %s 0x%04lx\n", + ad->ad_cname.bv_val, mask, 0 ); #else - Debug( LDAP_DEBUG_CONFIG, "index %s 0x%04x\n", + Debug( LDAP_DEBUG_CONFIG, "index %s 0x%04lx\n", ad->ad_cname.bv_val, mask, 0 ); #endif @@ -213,15 +212,8 @@ attr_index_config( return LDAP_SUCCESS; } - -static void -ainfo_free( void *attr ) -{ - free( attr ); -} - void attr_index_destroy( Avlnode *tree ) { - avl_free( tree, ainfo_free ); + avl_free( tree, free ); }