* set point for insertion if ins is non-NULL
*/
int
-bdb_attr_slot( struct bdb_info *bdb, AttributeDescription *ad, unsigned *ins )
+bdb_attr_slot( struct bdb_info *bdb, AttributeDescription *ad, int *ins )
{
unsigned base = 0, cursor = 0;
unsigned n = bdb->bi_nattrs;
int val = 0;
while ( 0 < n ) {
- int pivot = n >> 1;
+ unsigned pivot = n >> 1;
cursor = base + pivot;
val = SLAP_PTRCMP( ad, bdb->bi_attrs[cursor]->ai_desc );
static int
ainfo_insert( struct bdb_info *bdb, AttrInfo *a )
{
- unsigned x;
+ int x;
int i = bdb_attr_slot( bdb, a->ai_desc, &x );
/* Is it a dup? */
void bdb_attr_flush( struct bdb_info *bdb );
int bdb_attr_slot( struct bdb_info *bdb,
- AttributeDescription *desc, unsigned *insert );
+ AttributeDescription *desc, int *insert );
int bdb_attr_index_config LDAP_P(( struct bdb_info *bdb,
const char *fname, int lineno,