From: Joseph Sutton Date: Thu, 7 Sep 2023 03:57:53 +0000 (+1200) Subject: lib:charset: Fix code spelling X-Git-Tag: tevent-0.16.0~686 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd2b568721dd6900ce0daa5fc171ba71045066ca;p=thirdparty%2Fsamba.git lib:charset: Fix code spelling Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/lib/util/charset/charset.h b/lib/util/charset/charset.h index 4eaee1bbb7c..941a8be2146 100644 --- a/lib/util/charset/charset.h +++ b/lib/util/charset/charset.h @@ -119,8 +119,8 @@ size_t utf16_len_n(const void *src, size_t n); char *strchr_m(const char *s, char c); /** * Calculate the number of units (8 or 16-bit, depending on the - * destination charset), that would be needed to convert the input - * string which is expected to be in in src_charset encoding to the + * destination charset) that would be needed to convert the input + * string, which is expected to be in src_charset encoding, to the * destination charset (which should be a unicode charset). */ size_t strlen_m_ext_handle(struct smb_iconv_handle *ic, diff --git a/lib/util/charset/util_str.c b/lib/util/charset/util_str.c index 5d415f097e4..1650c9b8232 100644 --- a/lib/util/charset/util_str.c +++ b/lib/util/charset/util_str.c @@ -200,8 +200,8 @@ _PUBLIC_ bool strcsequal(const char *s1,const char *s2) /** * Calculate the number of units (8 or 16-bit, depending on the - * destination charset), that would be needed to convert the input - * string which is expected to be in in src_charset encoding to the + * destination charset) that would be needed to convert the input + * string, which is expected to be in src_charset encoding, to the * destination charset (which should be a unicode charset). */ _PUBLIC_ size_t strlen_m_ext_handle(struct smb_iconv_handle *ic, @@ -287,8 +287,8 @@ _PUBLIC_ size_t strlen_m_ext_handle(struct smb_iconv_handle *ic, /** * Calculate the number of units (8 or 16-bit, depending on the - * destination charset), that would be needed to convert the input - * string which is expected to be in in src_charset encoding to the + * destination charset) that would be needed to convert the input + * string, which is expected to be in src_charset encoding, to the * destination charset (which should be a unicode charset). */ _PUBLIC_ size_t strlen_m_ext(const char *s, charset_t src_charset, charset_t dst_charset) @@ -324,7 +324,7 @@ _PUBLIC_ size_t strlen_m_ext_term_null(const char *s, /** * Calculate the number of 16-bit units that would be needed to convert - * the input string which is expected to be in CH_UNIX encoding to UTF16. + * the input string, which is expected to be in CH_UNIX encoding, to UTF16. * * This will be the same as the number of bytes in a string for single * byte strings, but will be different for multibyte.