mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 09:58:07 +02:00
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:
parent
bf9ea4ea71
commit
c590f3c071
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue