mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-10 04:40:20 +01:00
shared: return NMStrBuf instance from nm_str_buf_reset()
it can be useful for chaining, and it costs nothing to do this on an inline function.
This commit is contained in:
parent
edc7c7204c
commit
e12e4ef849
1 changed files with 3 additions and 1 deletions
|
|
@ -294,7 +294,7 @@ nm_str_buf_append_c_len(NMStrBuf *strbuf, char ch, gsize len)
|
|||
|
||||
/*****************************************************************************/
|
||||
|
||||
static inline void
|
||||
static inline NMStrBuf *
|
||||
nm_str_buf_reset(NMStrBuf *strbuf)
|
||||
{
|
||||
_nm_str_buf_assert(strbuf);
|
||||
|
|
@ -306,6 +306,8 @@ nm_str_buf_reset(NMStrBuf *strbuf)
|
|||
}
|
||||
strbuf->_priv_len = 0;
|
||||
}
|
||||
|
||||
return strbuf;
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue