ldb: Fix code spelling
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 16 Oct 2023 03:08:04 +0000 (16:08 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 25 Oct 2023 22:23:37 +0000 (22:23 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/common/ldb_modules.c
lib/ldb/ldb_key_value/ldb_kv.c
lib/ldb/ldb_key_value/ldb_kv_index.c
lib/ldb/ldb_tdb/ldb_tdb.c
lib/ldb/tests/ldb_mod_op_test.c

index 53875ee216a8a9835f0947fc6af076a35d97ef30..b5627b0d04fd0d71543e9b40f31de4df1c74d195 100644 (file)
@@ -799,7 +799,7 @@ int ldb_module_send_entry(struct ldb_request *req,
        return req->callback(req, ares);
 }
 
-/* calls the request callback to send an referrals
+/* calls the request callback to send a referral
  *
  * params:
  *      req: the original request passed to your module
@@ -923,7 +923,7 @@ static int ldb_modules_load_dir(const char *modules_dir, const char *version);
   ldb_register_module() and ldb_register_backend() to register a
   module or backend, but it may also be used to register command line
   handling functions, ldif handlers or any other local
-  modififications.
+  modifications.
 
   The ldb_init_module() function does not get a ldb_context passed in,
   as modules will be used for multiple ldb context handles. The call
index 347b4fbfd8ad0462f3efa62ea18d60a178433024..ef69e5e5b0328b0232e2f60eaa819c64c616ec98 100644 (file)
@@ -1582,7 +1582,7 @@ static int ldb_kv_start_trans(struct ldb_module *module)
        if (ldb_kv->pid != pid) {
                ldb_asprintf_errstring(ldb_module_get_ctx(ldb_kv->module),
                                       __location__
-                                      ": Reusing ldb opend by pid %d in "
+                                      ": Reusing ldb opened by pid %d in "
                                       "process %d\n",
                                       ldb_kv->pid,
                                       pid);
@@ -1625,7 +1625,7 @@ static int ldb_kv_prepare_commit(struct ldb_module *module)
        if (ldb_kv->pid != pid) {
                ldb_asprintf_errstring(ldb_module_get_ctx(module),
                                       __location__
-                                      ": Reusing ldb opend by pid %d in "
+                                      ": Reusing ldb opened by pid %d in "
                                       "process %d\n",
                                       ldb_kv->pid,
                                       pid);
index f76087de6afd5b5aff75dcacffe0d7ead3d963ad..3f1a847f2b65910072e01df5a770f38ec3f95531 100644 (file)
@@ -1089,7 +1089,7 @@ static struct ldb_dn *ldb_kv_index_key(struct ldb_context *ldb,
 
        /*
         * We do not base 64 encode a DN in a key, it has already been
-        * casefold and lineraized, that is good enough.  That already
+        * casefolded and linearized, that is good enough.  That already
         * avoids embedded NUL etc.
         */
        if (ldb_kv->cache->GUID_index_attribute != NULL) {
index 77cd5e9726b40ffd4bd74264af3978311bf6e254..242fdef7619df2083de21f138885296280997a1a 100644 (file)
@@ -69,7 +69,7 @@ static int ltdb_lock_read(struct ldb_module *module)
        if (ldb_kv->pid != pid) {
                ldb_asprintf_errstring(ldb_module_get_ctx(module),
                                       __location__
-                                      ": Reusing ldb opend by pid %d in "
+                                      ": Reusing ldb opened by pid %d in "
                                       "process %d\n",
                                       ldb_kv->pid,
                                       pid);
@@ -109,7 +109,7 @@ static int ltdb_unlock_read(struct ldb_module *module)
        if (ldb_kv->pid != pid) {
                ldb_asprintf_errstring(ldb_module_get_ctx(module),
                                       __location__
-                                      ": Reusing ldb opend by pid %d in "
+                                      ": Reusing ldb opened by pid %d in "
                                       "process %d\n",
                                       ldb_kv->pid,
                                       pid);
@@ -175,7 +175,7 @@ static int ltdb_transaction_start(struct ldb_kv_private *ldb_kv)
        if (ldb_kv->pid != pid) {
                ldb_asprintf_errstring(ldb_module_get_ctx(ldb_kv->module),
                                       __location__
-                                      ": Reusing ldb opend by pid %d in "
+                                      ": Reusing ldb opened by pid %d in "
                                       "process %d\n",
                                       ldb_kv->pid,
                                       pid);
@@ -192,7 +192,7 @@ static int ltdb_transaction_cancel(struct ldb_kv_private *ldb_kv)
        if (ldb_kv->pid != pid) {
                ldb_asprintf_errstring(ldb_module_get_ctx(ldb_kv->module),
                                       __location__
-                                      ": Reusing ldb opend by pid %d in "
+                                      ": Reusing ldb opened by pid %d in "
                                       "process %d\n",
                                       ldb_kv->pid,
                                       pid);
@@ -209,7 +209,7 @@ static int ltdb_transaction_prepare_commit(struct ldb_kv_private *ldb_kv)
        if (ldb_kv->pid != pid) {
                ldb_asprintf_errstring(ldb_module_get_ctx(ldb_kv->module),
                                       __location__
-                                      ": Reusing ldb opend by pid %d in "
+                                      ": Reusing ldb opened by pid %d in "
                                       "process %d\n",
                                       ldb_kv->pid,
                                       pid);
@@ -226,7 +226,7 @@ static int ltdb_transaction_commit(struct ldb_kv_private *ldb_kv)
        if (ldb_kv->pid != pid) {
                ldb_asprintf_errstring(ldb_module_get_ctx(ldb_kv->module),
                                       __location__
-                                      ": Reusing ldb opend by pid %d in "
+                                      ": Reusing ldb opened by pid %d in "
                                       "process %d\n",
                                       ldb_kv->pid,
                                       pid);
index 6b49be55d6108db18316144d2975ef5562432f8b..f620fc1357bcd92066a372ad2b9a15900bc402c4 100644 (file)
@@ -3280,7 +3280,7 @@ static void test_read_only(void **state)
 
        /*
         * Open the database in read only and read write mode,
-        * ensure it's opend in read only mode first
+        * ensure it's opened in read only mode first
         */
        ro_ldb = ldb_init(test_ctx, test_ctx->ev);
        ret = ldb_connect(ro_ldb, test_ctx->dbpath, LDB_FLG_RDONLY, NULL);