util/charset: disambiguate docs for convert_string twins
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 28 Jun 2023 04:02:38 +0000 (16:02 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 26 Oct 2023 01:24:32 +0000 (01:24 +0000)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/util/charset/convert_string.c

index 7ec6653a592bec32155f63b7e27b766db09ca0c0..686b9ab846890222c6fd96612aa385248b69956c 100644 (file)
@@ -493,7 +493,9 @@ bool convert_string_talloc_handle(TALLOC_CTX *ctx, struct smb_iconv_handle *ic,
 }
 
 /**
- * Convert string from one encoding to another, making error checking etc
+ * Convert string from one encoding to another, with error checking.
+ * This version produces more logging information than
+ * convert_string_error(), but is otherwise functionally identical.
  *
  * @param src pointer to source string (multibyte or singlebyte)
  * @param srclen length of the source string in bytes
@@ -514,7 +516,8 @@ _PUBLIC_ bool convert_string(charset_t from, charset_t to,
 }
 
 /**
- * Convert string from one encoding to another, making error checking etc
+ * Convert string from one encoding to another, with error checking.
+ * This version is less verbose than convert_string().
  *
  * @param src pointer to source string (multibyte or singlebyte)
  * @param srclen length of the source string in bytes