Change in libosmocore[master]: fix api doc of osmo_identifier_sanitize_buf()

laforge gerrit-no-reply at
Fri Jul 9 11:52:17 UTC 2021

laforge has submitted this change. ( )

Change subject: fix api doc of osmo_identifier_sanitize_buf()

fix api doc of osmo_identifier_sanitize_buf()

The implementation cleary replaces sep_chars instead of keeping them.
Adjust the doc to clarify that.

It seems to me that the intention was to *allow* sep_chars instead of
replacing them, especially when looking at sep_chars of
osmo_separated_identifiers_valid(). But we're stuck with that now.

Change-Id: Ia842a7eeb46b49ee364be55c1194e463ebcaf392
M src/utils.c
1 file changed, 1 insertion(+), 1 deletion(-)

  laforge: Looks good to me, approved
  pespin: Looks good to me, but someone else must approve
  Jenkins Builder: Verified

diff --git a/src/utils.c b/src/utils.c
index f5896c4..721c34a 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -687,7 +687,7 @@
  * To guarantee passing osmo_separated_identifiers_valid(), replace_with must not itself be an illegal character. If in
  * doubt, use '-'.
  * \param[inout] str  Identifier to sanitize, must be nul terminated and in a writable buffer.
- * \param[in] sep_chars  Additional characters that are allowed besides osmo_identifier_illegal_chars.
+ * \param[in] sep_chars  Additional characters that are to be replaced besides osmo_identifier_illegal_chars.
  * \param[in] replace_with  Replace any illegal characters with this character.
 void osmo_identifier_sanitize_buf(char *str, const char *sep_chars, char replace_with)

To view, visit
To unsubscribe, or for help writing mail filters, visit

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ia842a7eeb46b49ee364be55c1194e463ebcaf392
Gerrit-Change-Number: 24881
Gerrit-PatchSet: 2
Gerrit-Owner: neels <nhofmeyr at>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at>
Gerrit-Reviewer: pespin <pespin at>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gerrit-log mailing list