diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-12-09 11:04:56 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-12-09 11:04:57 -0500 |
commit | 580d788b3f85ee04f8893325b902bf28727a451b (patch) | |
tree | 543076a6e8ca31fe29809efeae547e7701e7599c /src/or/policies.h | |
parent | db433b8dc3c8684e6a86365e12336a708f67edaa (diff) | |
download | tor-580d788b3f85ee04f8893325b902bf28727a451b.tar.gz tor-580d788b3f85ee04f8893325b902bf28727a451b.zip |
Tweak policies_log_first_redundant_entry even more
* Use smartlist_foreach_begin/end instead of a plain for loop.
* constify the pointers.
Diffstat (limited to 'src/or/policies.h')
-rw-r--r-- | src/or/policies.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/policies.h b/src/or/policies.h index bb56bf42b8..007f494482 100644 --- a/src/or/policies.h +++ b/src/or/policies.h @@ -75,7 +75,7 @@ char * policy_dump_to_string(const smartlist_t *policy_list, int getinfo_helper_policies(control_connection_t *conn, const char *question, char **answer, const char **errmsg); -int policy_write_item(char *buf, size_t buflen, addr_policy_t *item, +int policy_write_item(char *buf, size_t buflen, const addr_policy_t *item, int format_for_desc); void addr_policy_list_free(smartlist_t *p); |