From de4df9f5297b6d20cec0a2044f2563dd3c98d149 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 26 Jun 2020 09:28:32 +0200 Subject: [PATCH] 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. --- shared/nm-glib-aux/nm-str-buf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/nm-glib-aux/nm-str-buf.h b/shared/nm-glib-aux/nm-str-buf.h index 13af81c01d..da082abe67 100644 --- a/shared/nm-glib-aux/nm-str-buf.h +++ b/shared/nm-glib-aux/nm-str-buf.h @@ -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);