diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/util.c | 2 | ||||
-rw-r--r-- | src/common/util.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c index d1c87d3e85..9162967907 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -2906,7 +2906,7 @@ read_file_to_str, (const char *filename, int flags, struct stat *stat_out)) * provided), and return a pointer to the position in <b>s</b> immediately * after the string. On failure, return NULL. */ -static const char * +const char * unescape_string(const char *s, char **result, size_t *size_out) { const char *cp; diff --git a/src/common/util.h b/src/common/util.h index 57605ccfd1..479fc8d610 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -385,6 +385,7 @@ MOCK_DECL_ATTR(char *, read_file_to_str, char *read_file_to_str_until_eof(int fd, size_t max_bytes_to_read, size_t *sz_out) ATTR_MALLOC; +const char *unescape_string(const char *s, char **result, size_t *size_out); const char *parse_config_line_from_str_verbose(const char *line, char **key_out, char **value_out, const char **err_out); |