mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 20:33:31 +01:00
and another one
svn:r2484
This commit is contained in:
parent
5f4a390b33
commit
69830afc16
@ -208,7 +208,7 @@ file_status_t file_status(const char *filename);
|
|||||||
int check_private_dir(const char *dirname, int create);
|
int check_private_dir(const char *dirname, int create);
|
||||||
int write_str_to_file(const char *fname, const char *str, int bin);
|
int write_str_to_file(const char *fname, const char *str, int bin);
|
||||||
char *read_file_to_str(const char *filename, int bin);
|
char *read_file_to_str(const char *filename, int bin);
|
||||||
int parse_line_from_file(char *line, int maxlen, FILE *f, char **key_out, char **value_out);
|
int parse_line_from_file(char *line, size_t maxlen, FILE *f, char **key_out, char **value_out);
|
||||||
char *expand_filename(const char *filename);
|
char *expand_filename(const char *filename);
|
||||||
int replace_file(const char *from, const char *to);
|
int replace_file(const char *from, const char *to);
|
||||||
|
|
||||||
|
@ -939,8 +939,7 @@ router_parse_exit_policy_from_string(const char *s)
|
|||||||
const char *cp;
|
const char *cp;
|
||||||
char *tmp;
|
char *tmp;
|
||||||
struct exit_policy_t *r;
|
struct exit_policy_t *r;
|
||||||
size_t len;
|
size_t len, idx;
|
||||||
int idx;
|
|
||||||
|
|
||||||
/* *s might not end with \n, so we need to extend it with one. */
|
/* *s might not end with \n, so we need to extend it with one. */
|
||||||
len = strlen(s);
|
len = strlen(s);
|
||||||
|
Loading…
Reference in New Issue
Block a user