From 2ad51046e3becd5257d7bb25c0dc43be13172809 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 25 Nov 2006 14:49:17 +0000 Subject: r19884: rename ldb_dn_key -> ltdb_index_key to make more clear what it's for... metze (This used to be commit 6b76a7be4ac5443d68a1253dc9ec430dcdc327f1) --- source4/lib/ldb/ldb_tdb/ldb_index.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source4/lib/ldb/ldb_tdb') diff --git a/source4/lib/ldb/ldb_tdb/ldb_index.c b/source4/lib/ldb/ldb_tdb/ldb_index.c index 8b90604902..872afb78ae 100644 --- a/source4/lib/ldb/ldb_tdb/ldb_index.c +++ b/source4/lib/ldb/ldb_tdb/ldb_index.c @@ -103,8 +103,8 @@ struct dn_list { return the dn key to be used for an index caller frees */ -static struct ldb_dn *ldb_dn_key(struct ldb_context *ldb, - const char *attr, const struct ldb_val *value) +static struct ldb_dn *ltdb_index_key(struct ldb_context *ldb, + const char *attr, const struct ldb_val *value) { struct ldb_dn *ret; char *dn; @@ -207,7 +207,7 @@ static int ltdb_index_dn_simple(struct ldb_module *module, /* the attribute is indexed. Pull the list of DNs that match the search criterion */ - dn = ldb_dn_key(ldb, tree->u.equality.attr, &tree->u.equality.value); + dn = ltdb_index_key(ldb, tree->u.equality.attr, &tree->u.equality.value); if (!dn) return -1; msg = talloc(list, struct ldb_message); @@ -853,7 +853,7 @@ static int ltdb_index_add1(struct ldb_module *module, const char *dn, return -1; } - dn_key = ldb_dn_key(ldb, el->name, &el->values[v_idx]); + dn_key = ltdb_index_key(ldb, el->name, &el->values[v_idx]); if (!dn_key) { talloc_free(msg); errno = ENOMEM; @@ -963,7 +963,7 @@ int ltdb_index_del_value(struct ldb_module *module, const char *dn, return 0; } - dn_key = ldb_dn_key(ldb, el->name, &el->values[v_idx]); + dn_key = ltdb_index_key(ldb, el->name, &el->values[v_idx]); if (!dn_key) { return -1; } -- cgit