diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-09-24 13:06:52 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-09-25 13:36:34 +0200 |
commit | d4d9f034b13acef37375daec5074d9d271e21eed (patch) | |
tree | 15d5fe884345599f5afe238264a8de8d434a1c5d /src/basic/strv.h | |
parent | cryptsetup: upgrade log line for option parsing error (diff) | |
download | systemd-d4d9f034b13acef37375daec5074d9d271e21eed.tar.xz systemd-d4d9f034b13acef37375daec5074d9d271e21eed.zip |
basic/strv: allow escaping the separator in strv_join()
The new parameter is false everywhere except for tests, so no functional change
is expected.
Diffstat (limited to 'src/basic/strv.h')
-rw-r--r-- | src/basic/strv.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/strv.h b/src/basic/strv.h index 9468edc6a6..919fabf75a 100644 --- a/src/basic/strv.h +++ b/src/basic/strv.h @@ -91,9 +91,9 @@ static inline char **strv_split(const char *s, const char *separators) { * string in the vector is an empty string. */ int strv_split_colon_pairs(char ***t, const char *s); -char *strv_join_prefix(char * const *l, const char *separator, const char *prefix); +char *strv_join_full(char * const *l, const char *separator, const char *prefix, bool escape_separtor); static inline char *strv_join(char * const *l, const char *separator) { - return strv_join_prefix(l, separator, NULL); + return strv_join_full(l, separator, NULL, false); } char **strv_parse_nulstr(const char *s, size_t l); |