diff options
author | Andreas Schneider <asn@samba.org> | 2023-04-03 10:07:39 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2023-04-04 07:31:36 +0000 |
commit | fc28daa6c7269cb94d0f7c52b4293dc0d3f10acc (patch) | |
tree | abdf449baaf7ed7177fdc858f4f1863e070ea613 /lib | |
parent | 1bb75c5471d729177071d95d3286616ed50a9184 (diff) | |
download | samba-fc28daa6c7269cb94d0f7c52b4293dc0d3f10acc.tar.gz |
lib:ldb:common: Fix code spelling
Best reviewed with: `git show --word-diff`.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ldb/common/attrib_handlers.c | 2 | ||||
-rw-r--r-- | lib/ldb/common/ldb_ldif.c | 2 | ||||
-rw-r--r-- | lib/ldb/common/ldb_match.c | 2 | ||||
-rw-r--r-- | lib/ldb/common/ldb_msg.c | 6 | ||||
-rw-r--r-- | lib/ldb/common/ldb_pack.c | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/lib/ldb/common/attrib_handlers.c b/lib/ldb/common/attrib_handlers.c index 2c30f5235a9..15470cfcc74 100644 --- a/lib/ldb/common/attrib_handlers.c +++ b/lib/ldb/common/attrib_handlers.c @@ -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; diff --git a/lib/ldb/common/ldb_ldif.c b/lib/ldb/common/ldb_ldif.c index fc9a4fd0939..748e44ed2b9 100644 --- a/lib/ldb/common/ldb_ldif.c +++ b/lib/ldb/common/ldb_ldif.c @@ -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; diff --git a/lib/ldb/common/ldb_match.c b/lib/ldb/common/ldb_match.c index 51376871b4c..7127bf34568 100644 --- a/lib/ldb/common/ldb_match.c +++ b/lib/ldb/common/ldb_match.c @@ -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; diff --git a/lib/ldb/common/ldb_msg.c b/lib/ldb/common/ldb_msg.c index f584745968f..c3db513425e 100644 --- a/lib/ldb/common/ldb_msg.c +++ b/lib/ldb/common/ldb_msg.c @@ -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 */ diff --git a/lib/ldb/common/ldb_pack.c b/lib/ldb/common/ldb_pack.c index e7dd364008a..865fc70fb03 100644 --- a/lib/ldb/common/ldb_pack.c +++ b/lib/ldb/common/ldb_pack.c @@ -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++) { |