From: Juan Gomez Date: Mon, 14 Jun 1999 16:36:00 +0000 (+0000) Subject: s/official/canonical/ & s/at_on/at_cn/ X-Git-Tag: OPENLDAP_REL_ENG_2_BP~320 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bf4954483352304320997c7ebf6f656a30625039;p=openldap s/official/canonical/ & s/at_on/at_cn/ --- diff --git a/servers/slapd/attr.c b/servers/slapd/attr.c index fd6707063d..e64b5f307f 100644 --- a/servers/slapd/attr.c +++ b/servers/slapd/attr.c @@ -530,7 +530,7 @@ at_add( char * -at_official_name( char * a_type ) +at_canonical_name( char * a_type ) { AttributeType *atp; @@ -554,7 +554,7 @@ at_official_name( char * a_type ) } -}/* char * at_official_name() */ +}/* char * at_canonica_name() */ #if defined( SLAPD_SCHEMA_DN ) diff --git a/servers/slapd/back-bdb2/index.c b/servers/slapd/back-bdb2/index.c index b564491f41..0cfb1595b3 100644 --- a/servers/slapd/back-bdb2/index.c +++ b/servers/slapd/back-bdb2/index.c @@ -121,7 +121,7 @@ bdb2i_index_read( } attr_normalize( type ); - at_on = at_official_name(type); + at_on = at_canonical_name(type); if ( (db = bdb2i_cache_open( be, at_on, BDB2_SUFFIX, LDBM_WRCREAT )) == NULL ) { @@ -238,7 +238,7 @@ bdb2i_index_add_values( if ( indexmask == 0 ) { return( 0 ); } - at_on = at_official_name(type); + at_on = at_canonical_name(type); if ( (db = bdb2i_cache_open( be, at_on, BDB2_SUFFIX, LDBM_WRCREAT )) == NULL ) { diff --git a/servers/slapd/back-ldbm/index.c b/servers/slapd/back-ldbm/index.c index c4587af153..6a13c124bd 100644 --- a/servers/slapd/back-ldbm/index.c +++ b/servers/slapd/back-ldbm/index.c @@ -104,7 +104,7 @@ index_read( char *realval, *tmpval; char buf[BUFSIZ]; - char *at_on; + char *at_cn; ldbm_datum_init( key ); @@ -122,12 +122,12 @@ index_read( } attr_normalize( type ); - at_on = at_official_name( type ); + at_cn = at_canonical_name( type ); - if ( (db = ldbm_cache_open( be, at_on, LDBM_SUFFIX, LDBM_WRCREAT )) + if ( (db = ldbm_cache_open( be, at_cn, LDBM_SUFFIX, LDBM_WRCREAT )) == NULL ) { Debug( LDAP_DEBUG_ANY, - "<= index_read NULL (could not open %s%s)\n", at_on, + "<= index_read NULL (could not open %s%s)\n", at_cn, LDBM_SUFFIX, 0 ); return( NULL ); } @@ -236,7 +236,7 @@ index_add_values( char *bigbuf; struct dbcache *db; - char *at_on; /* Attribute official name */ + char *at_cn; /* Attribute canonical name */ Debug( LDAP_DEBUG_TRACE, "=> index_add_values( \"%s\", %ld )\n", type, id, 0 ); @@ -245,12 +245,12 @@ index_add_values( if ( indexmask == 0 ) { return( 0 ); } - at_on = at_official_name( type ); - if ( (db = ldbm_cache_open( be, at_on, LDBM_SUFFIX, LDBM_WRCREAT )) + at_cn = at_canonical_name( type ); + if ( (db = ldbm_cache_open( be, at_cn, LDBM_SUFFIX, LDBM_WRCREAT )) == NULL ) { Debug( LDAP_DEBUG_ANY, "<= index_add_values -1 (could not open/create %s%s)\n", - at_on, LDBM_SUFFIX, 0 ); + at_cn, LDBM_SUFFIX, 0 ); return( -1 ); } @@ -260,7 +260,7 @@ 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, "*** index_add_values syntax 0x%x syntax bin 0x%x\n", @@ -292,7 +292,7 @@ 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 ); } /* @@ -302,7 +302,7 @@ 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 ); } @@ -321,7 +321,7 @@ 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++ ) { @@ -330,7 +330,7 @@ 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 */ @@ -340,7 +340,7 @@ 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 ); } } diff --git a/servers/slapd/proto-slap.h b/servers/slapd/proto-slap.h index ccdcc921b8..4ae19d112e 100644 --- a/servers/slapd/proto-slap.h +++ b/servers/slapd/proto-slap.h @@ -53,7 +53,7 @@ int at_delete_from_list LDAP_P(( int pos, AttributeType ***listp )); int at_fake_if_needed LDAP_P(( char *name )); int at_schema_info LDAP_P(( Entry *e )); int at_add LDAP_P(( LDAP_ATTRIBUTE_TYPE *at, const char **err )); -char * at_official_name LDAP_P(( char * a_type )); +char * at_canonical_name LDAP_P(( char * a_type )); /* * ava.c