lib ldb: reformat ltdb_reindex_context rename
authorGary Lockyer <gary@catalyst.net.nz>
Thu, 19 Jul 2018 20:53:28 +0000 (08:53 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 30 Jul 2018 12:31:53 +0000 (14:31 +0200)
Fix up the formatting after the rename of ltdb_reindex_context to
ldb_kv_reindex_context.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/ldb_tdb/ldb_index.c
lib/ldb/ldb_tdb/ldb_tdb.c

index 4d6c57b3a848f9d9b7befc9eb6cdbd341116687c..1399f6902debb238364f5264cb65f0a51736a311 100644 (file)
@@ -2832,7 +2832,8 @@ static int delete_index(struct ltdb_private *ltdb, struct ldb_val key, struct ld
 static int re_key(struct ltdb_private *ltdb, struct ldb_val ldb_key, struct ldb_val val, void *state)
 {
        struct ldb_context *ldb;
-       struct ldb_kv_reindex_context *ctx = (struct ldb_kv_reindex_context *)state;
+       struct ldb_kv_reindex_context *ctx =
+           (struct ldb_kv_reindex_context *)state;
        struct ldb_module *module = ctx->module;
        struct ldb_message *msg;
        unsigned int nb_elements_in_db;
@@ -2923,7 +2924,8 @@ static int re_key(struct ltdb_private *ltdb, struct ldb_val ldb_key, struct ldb_
 static int re_index(struct ltdb_private *ltdb, struct ldb_val ldb_key, struct ldb_val val, void *state)
 {
        struct ldb_context *ldb;
-       struct ldb_kv_reindex_context *ctx = (struct ldb_kv_reindex_context *)state;
+       struct ldb_kv_reindex_context *ctx =
+           (struct ldb_kv_reindex_context *)state;
        struct ldb_module *module = ctx->module;
        struct ldb_message *msg;
        unsigned int nb_elements_in_db;
index 348b5fceb02ccbf1657243a907031008267adc01..29c0ead948ba53a6599c28eb164707255e01165c 100644 (file)
@@ -1924,7 +1924,8 @@ static int ltdb_update_in_iterate(struct ltdb_private *ltdb,
 {
        int tdb_ret;
        struct ldb_context *ldb;
-       struct ldb_kv_reindex_context *ctx = (struct ldb_kv_reindex_context *)state;
+       struct ldb_kv_reindex_context *ctx =
+           (struct ldb_kv_reindex_context *)state;
        struct ldb_module *module = ctx->module;
        TDB_DATA key = {
                .dptr = ldb_key.data,