]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib:ldb:common: Fix code spelling
authorAndreas Schneider <asn@samba.org>
Mon, 3 Apr 2023 08:07:39 +0000 (10:07 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 4 Apr 2023 07:31:36 +0000 (07:31 +0000)
Best reviewed with: `git show --word-diff`.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/common/attrib_handlers.c
lib/ldb/common/ldb_ldif.c
lib/ldb/common/ldb_match.c
lib/ldb/common/ldb_msg.c
lib/ldb/common/ldb_pack.c

index 2c30f5235a999c3e2c3724921382e725636f447e..15470cfcc74c117919271944dcc73139a9f7a39f 100644 (file)
@@ -326,7 +326,7 @@ int ldb_comparison_fold(struct ldb_context *ldb, void *mem_ctx,
        while (n2 && *s2 == ' ') { s2++; n2--; };
 
        while (n1 && n2 && *s1 && *s2) {
-               /* the first 127 (0x7F) chars are ascii and utf8 guarantes they
+               /* the first 127 (0x7F) chars are ascii and utf8 guarantees they
                 * never appear in multibyte sequences */
                if (((unsigned char)s1[0]) & 0x80) goto utf8str;
                if (((unsigned char)s2[0]) & 0x80) goto utf8str;
index fc9a4fd0939945a60ecc718f4fa9f40fb0bd814a..748e44ed2b98073fa17d4fdb68c5cf2be7ff18ee 100644 (file)
@@ -343,7 +343,7 @@ static int ldb_ldif_write_trace(struct ldb_context *ldb,
                }
 
                if (in_trace && secret_attributes && ldb_attr_in_list(secret_attributes, msg->elements[i].name)) {
-                       /* Deliberatly skip printing this password */
+                       /* Deliberately skip printing this password */
                        ret = fprintf_fn(private_data, "# %s::: REDACTED SECRET ATTRIBUTE\n",
                                         msg->elements[i].name);
                        CHECK_RET;
index 51376871b4c9bdad2aa296fe39d6000b8f09f80e..7127bf34568010d47aefddc2a050e9011a03e868 100644 (file)
@@ -203,7 +203,7 @@ static int ldb_match_equality(struct ldb_context *ldb,
        }
 
        /* TODO: handle the "*" case derived from an extended search
-          operation without the attibute type defined */
+          operation without the attribute type defined */
        el = ldb_msg_find_element(msg, tree->u.equality.attr);
        if (el == NULL) {
                *matched = false;
index f584745968f473b9659155ac1cb9babb957a4a76..c3db513425e2ac2b50c124fcbacb1000b29865c9 100644 (file)
@@ -58,7 +58,7 @@ struct ldb_message_element *ldb_msg_find_element(const struct ldb_message *msg,
 
 /*
   see if two ldb_val structures contain exactly the same data
-  return 1 for a match, 0 for a mis-match
+  return 1 for a match, 0 for a mismatch
 */
 int ldb_val_equal_exact(const struct ldb_val *v1, const struct ldb_val *v2)
 {
@@ -1524,7 +1524,7 @@ char *ldb_timestring(TALLOC_CTX *mem_ctx, time_t t)
                return NULL;
        }
 
-       /* we now excatly how long this string will be */
+       /* we now exactly how long this string will be */
        ts = talloc_array(mem_ctx, char, 18);
 
        /* formatted like: 20040408072012.0Z */
@@ -1640,7 +1640,7 @@ char *ldb_timestring_utc(TALLOC_CTX *mem_ctx, time_t t)
                return NULL;
        }
 
-       /* we now excatly how long this string will be */
+       /* we now exactly how long this string will be */
        ts = talloc_array(mem_ctx, char, 14);
 
        /* formatted like: 20040408072012.0Z => 040408072012Z */
index e7dd364008a9db7ca35a34e7c180b6c523dba1a3..865fc70fb033929bf51b4b67ab9af37d70a41259 100644 (file)
@@ -122,7 +122,7 @@ static int ldb_pack_data_v1(struct ldb_context *ldb,
        size += dn_len;
 
        /*
-        * First calcuate the buffer size we need, and check for
+        * First calculate the buffer size we need, and check for
         * overflows
         */
        for (i=0;i<message->num_elements;i++) {