summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-11-25 14:49:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:28:31 -0500
commit2ad51046e3becd5257d7bb25c0dc43be13172809 (patch)
tree75f5ff1366db7c3cab21ece7f340066e75a97809
parent9a1f380d5b49d18b598891ad1e65a6c06fe6b251 (diff)
downloadsamba-2ad51046e3becd5257d7bb25c0dc43be13172809.tar.gz
samba-2ad51046e3becd5257d7bb25c0dc43be13172809.tar.bz2
samba-2ad51046e3becd5257d7bb25c0dc43be13172809.zip
r19884: rename ldb_dn_key -> ltdb_index_key to make more clear what it's for...
metze (This used to be commit 6b76a7be4ac5443d68a1253dc9ec430dcdc327f1)
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_index.c10
1 files changed, 5 insertions, 5 deletions
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;
}