diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-01-02 06:59:12 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-01-02 06:59:12 +0000 |
commit | 86f5180853e4054c6a14dda69253bccf6ea50a4c (patch) | |
tree | 7e271734bc756086974a0b4047d94034087e22bb /src/common/util.h | |
parent | c0ec2815652842bdb2b533c2a8ddd125f26730fb (diff) | |
download | tor-86f5180853e4054c6a14dda69253bccf6ea50a4c.tar.gz tor-86f5180853e4054c6a14dda69253bccf6ea50a4c.zip |
r15786@tombo: nickm | 2008-01-02 01:11:51 -0500
Push the strdups used for parsing configuration lines into parse_line_from_string(). This will make it easier to parse more complex value formats, which in turn will help fix bug 557
svn:r13020
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/util.h b/src/common/util.h index d69c919964..1eaad82ec2 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -265,7 +265,8 @@ int append_bytes_to_file(const char *fname, const char *str, size_t len, struct stat; char *read_file_to_str(const char *filename, int flags, struct stat *stat_out) ATTR_MALLOC; -char *parse_line_from_str(char *line, char **key_out, char **value_out); +const char *parse_config_line_from_str(const char *line, + char **key_out, char **value_out); char *expand_filename(const char *filename); struct smartlist_t *tor_listdir(const char *dirname); int path_is_relative(const char *filename) ATTR_PURE; |