shared: return non-const pointer from nm_str_buf_get_str()

It's more convenient in certain cases. The user is allowed
to modified the content of the returned buffer.

(cherry picked from commit de4df9f529)
This commit is contained in:
Thomas Haller 2020-06-26 09:28:32 +02:00
parent bf9ea4ea71
commit c590f3c071
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -281,7 +281,7 @@ nm_str_buf_is_initalized (NMStrBuf *strbuf)
* NUL character is always present after "strbuf->len" characters.
* If currently no buffer is allocated, this will return %NULL.
*/
static inline const char *
static inline char *
nm_str_buf_get_str (NMStrBuf *strbuf)
{
_nm_str_buf_assert (strbuf);