diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-10-01 11:08:09 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-10-01 11:17:19 -0500 |
commit | 35db3f8162f132cec7afc148eda8f7482dbeeb76 (patch) | |
tree | 7c00b06286d5c75f5ab5d854a201031c7e7a0f9a /src/feature/dirparse/parsecommon.c | |
parent | 95e2eb9083d2cd9c79c3f4151850c86cbeaf4cc4 (diff) | |
download | tor-35db3f8162f132cec7afc148eda8f7482dbeeb76.tar.gz tor-35db3f8162f132cec7afc148eda8f7482dbeeb76.zip |
Extract addr-policy parsing code.
Diffstat (limited to 'src/feature/dirparse/parsecommon.c')
-rw-r--r-- | src/feature/dirparse/parsecommon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/dirparse/parsecommon.c b/src/feature/dirparse/parsecommon.c index ab815f585d..c12f199e4e 100644 --- a/src/feature/dirparse/parsecommon.c +++ b/src/feature/dirparse/parsecommon.c @@ -51,7 +51,7 @@ token_clear(directory_token_t *tok) int tokenize_string(memarea_t *area, const char *start, const char *end, smartlist_t *out, - token_rule_t *table, int flags) + const token_rule_t *table, int flags) { const char **s; directory_token_t *tok = NULL; @@ -257,7 +257,7 @@ token_check_object(memarea_t *area, const char *kwd, */ directory_token_t * get_next_token(memarea_t *area, - const char **s, const char *eos, token_rule_t *table) + const char **s, const char *eos, const token_rule_t *table) { /** Reject any object at least this big; it is probably an overflow, an * attack, a bug, or some other nonsense. */ |