From: Andreas Schneider Date: Mon, 3 Apr 2023 08:07:39 +0000 (+0200) Subject: lib:ldb:common: Fix code spelling X-Git-Tag: talloc-2.4.1~1130 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fc28daa6c7269cb94d0f7c52b4293dc0d3f10acc;p=thirdparty%2Fsamba.git lib:ldb:common: Fix code spelling Best reviewed with: `git show --word-diff`. Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- 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;inum_elements;i++) {