Extract addr-policy parsing code.

This commit is contained in:
Nick Mathewson
2018-10-01 11:08:09 -05:00
parent 95e2eb9083
commit 35db3f8162
11 changed files with 267 additions and 212 deletions
+2 -2
View File
@@ -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. */