From 24ec5ded59f59e0fe3c1b06acb9e7cde7ce60590 Mon Sep 17 00:00:00 2001 From: Juan Gomez Date: Mon, 14 Jun 1999 16:37:46 +0000 Subject: [PATCH] official -> canonical --- servers/slapd/back-bdb2/index.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/servers/slapd/back-bdb2/index.c b/servers/slapd/back-bdb2/index.c index 0cfb1595b3..8994f14b6b 100644 --- a/servers/slapd/back-bdb2/index.c +++ b/servers/slapd/back-bdb2/index.c @@ -103,7 +103,7 @@ bdb2i_index_read( char *realval, *tmpval; char buf[BUFSIZ]; - char *at_on; + char *at_cn; ldbm_datum_init( key ); @@ -121,12 +121,12 @@ bdb2i_index_read( } attr_normalize( type ); - at_on = at_canonical_name(type); + at_cn = at_canonical_name(type); - if ( (db = bdb2i_cache_open( be, at_on, BDB2_SUFFIX, LDBM_WRCREAT )) + if ( (db = bdb2i_cache_open( be, at_cn, BDB2_SUFFIX, LDBM_WRCREAT )) == NULL ) { Debug( LDAP_DEBUG_ANY, - "<= bdb2i_index_read NULL (could not open %s%s)\n", at_on, + "<= bdb2i_index_read NULL (could not open %s%s)\n", at_cn, BDB2_SUFFIX, 0 ); return( NULL ); } @@ -229,7 +229,7 @@ bdb2i_index_add_values( char *bigbuf; struct dbcache *db; - char *at_on; + char *at_cn; Debug( LDAP_DEBUG_TRACE, "=> bdb2i_index_add_values( \"%s\", %ld )\n", type, id, 0 ); @@ -238,13 +238,13 @@ bdb2i_index_add_values( if ( indexmask == 0 ) { return( 0 ); } - at_on = at_canonical_name(type); + at_cn = at_canonical_name(type); - if ( (db = bdb2i_cache_open( be, at_on, BDB2_SUFFIX, LDBM_WRCREAT )) + if ( (db = bdb2i_cache_open( be, at_cn, BDB2_SUFFIX, LDBM_WRCREAT )) == NULL ) { Debug( LDAP_DEBUG_ANY, "<= bdb2i_index_add_values -1 (could not open/create %s%s)\n", - at_on, BDB2_SUFFIX, 0 ); + at_cn, BDB2_SUFFIX, 0 ); return( -1 ); } @@ -253,7 +253,7 @@ bdb2i_index_add_values( * presence index entry */ if ( indexmask & INDEX_PRESENCE ) { - add_value( be, db, at_on, INDEX_PRESENCE, "*", id ); + add_value( be, db, at_cn, INDEX_PRESENCE, "*", id ); } Debug( LDAP_DEBUG_TRACE, "*** bdb2i_index_add_values syntax 0x%x syntax bin 0x%x\n", @@ -285,7 +285,7 @@ bdb2i_index_add_values( * equality index entry */ if ( indexmask & INDEX_EQUALITY ) { - add_value( be, db, at_on, INDEX_EQUALITY, val, id ); + add_value( be, db, at_cn, INDEX_EQUALITY, val, id ); } /* @@ -295,7 +295,7 @@ bdb2i_index_add_values( for ( w = first_word( val ); w != NULL; w = next_word( w ) ) { if ( (code = phonetic( w )) != NULL ) { - add_value( be, db, at_on, INDEX_APPROX, + add_value( be, db, at_cn, INDEX_APPROX, code, id ); free( code ); } @@ -314,7 +314,7 @@ bdb2i_index_add_values( } buf[SUBLEN] = '\0'; - add_value( be, db, at_on, INDEX_SUB, buf, id ); + add_value( be, db, at_cn, INDEX_SUB, buf, id ); p = val + len - SUBLEN + 1; for ( j = 0; j < SUBLEN - 1; j++ ) { @@ -323,7 +323,7 @@ bdb2i_index_add_values( buf[SUBLEN - 1] = '$'; buf[SUBLEN] = '\0'; - add_value( be, db, at_on, INDEX_SUB, buf, id ); + add_value( be, db, at_cn, INDEX_SUB, buf, id ); } /* any */ @@ -333,7 +333,7 @@ bdb2i_index_add_values( } buf[SUBLEN] = '\0'; - add_value( be, db, at_on, INDEX_SUB, buf, id ); + add_value( be, db, at_cn, INDEX_SUB, buf, id ); } } -- 2.39.5