s3:lib: Fix code spelling
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Fri, 22 Sep 2023 00:08:10 +0000 (12:08 +1200)
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>
source3/lib/adouble.c
source3/lib/smbldap.c
source3/lib/tldap.c

index ad1e5059cf6e2b39d649191c4769f8777c882e87..1e8dbc4aaf3cef2fd29e59c014396b3f90e01dc2 100644 (file)
@@ -328,7 +328,7 @@ static bool ad_entry_check_size(uint32_t eid,
        }
        if (ad_checks[eid].fixed_size) {
                if (ad_checks[eid].expected_len != got_len) {
-                       /* Wrong size fo fixed size entry. */
+                       /* Wrong size for fixed size entry. */
                        return false;
                }
        } else {
index a95036e2f879670014e784a577fd319c7491601c..c0d6884a7835cae1b3cfd7791822339ad8c74bb8 100644 (file)
@@ -1759,7 +1759,7 @@ static int smbldap_state_destructor(struct smbldap_state *state)
 
 
 /**********************************************************************
- Intitalise the 'general' ldap structures, on which ldap operations may be conducted
+ Initialise the 'general' ldap structures, on which ldap operations may be conducted
  *********************************************************************/
 
 NTSTATUS smbldap_init(TALLOC_CTX *mem_ctx, struct tevent_context *tevent_ctx,
index 2eed3a9fa999571f09a57b6403aedda6763df9ee..ad3232bf581a40630a388b153d391f8618e6fade 100644 (file)
@@ -1776,10 +1776,10 @@ static bool tldap_push_filter_substring(struct tldap_context *ld,
        return asn1_pop_tag(data);
 }
 
-/* NOTE: although openldap libraries allow for spaces in some places, mosly
- * around parenthesis, we do not allow any spaces (except in values of
- * course) as I couldn't fine any place in RFC 4512 or RFC 4515 where
- * leading or trailing spaces where allowed.
+/* NOTE: although openldap libraries allow for spaces in some places, mostly
+ * around parentheses, we do not allow any spaces (except in values of
+ * course) as I couldn't find any place in RFC 4512 or RFC 4515 where
+ * leading or trailing spaces were allowed.
  */
 static bool tldap_push_filter(struct tldap_context *ld,
                              struct asn1_data *data,