summaryrefslogtreecommitdiff
path: root/src/or/policies.c
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2008-08-13 12:46:13 +0000
committerPeter Palfrader <peter@palfrader.org>2008-08-13 12:46:13 +0000
commitadcea0f33257e1958e6caa2c42048b2caade3215 (patch)
tree5cc15c8f6cac7803d01bc8f58327ff2b07ccb279 /src/or/policies.c
parent0d807068a30e71fa2dd4b2aac765f499f7944a7f (diff)
downloadtor-adcea0f33257e1958e6caa2c42048b2caade3215.tar.gz
tor-adcea0f33257e1958e6caa2c42048b2caade3215.zip
Think of the poor children in Antarctica who still have to work on 4" screens
svn:r16528
Diffstat (limited to 'src/or/policies.c')
-rw-r--r--src/or/policies.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/or/policies.c b/src/or/policies.c
index 1efc60adc0..53e7c7aacd 100644
--- a/src/or/policies.c
+++ b/src/or/policies.c
@@ -48,11 +48,15 @@ typedef struct policy_summary_item_t {
} policy_summary_item_t;
smartlist_t *policy_summary_create(void);
-void policy_summary_accept(smartlist_t *summary, uint16_t prt_min, uint16_t prt_max);
-void policy_summary_reject(smartlist_t *summary, maskbits_t maskbits, uint16_t prt_min, uint16_t prt_max);
+void policy_summary_accept(smartlist_t *summary,
+ uint16_t prt_min, uint16_t prt_max);
+void policy_summary_reject(smartlist_t *summary, maskbits_t maskbits,
+ uint16_t prt_min, uint16_t prt_max);
void policy_summary_add_item(smartlist_t *summary, addr_policy_t *p);
-int policy_summary_split(smartlist_t *summary, uint16_t prt_min, uint16_t prt_max);
-policy_summary_item_t* policy_summary_item_split(policy_summary_item_t* old, uint16_t new_starts);
+int policy_summary_split(smartlist_t *summary,
+ uint16_t prt_min, uint16_t prt_max);
+policy_summary_item_t* policy_summary_item_split(policy_summary_item_t* old,
+ uint16_t new_starts);
/** Private networks. This list is used in two places, once to expand the
* "private" keyword when parsing our own exit policy, secondly to ignore
@@ -956,7 +960,8 @@ policy_summary_create(void)
* previously ended.
*/
policy_summary_item_t*
-policy_summary_item_split(policy_summary_item_t* old, uint16_t new_starts) {
+policy_summary_item_split(policy_summary_item_t* old, uint16_t new_starts)
+{
policy_summary_item_t* new;
new = tor_malloc_zero(sizeof(policy_summary_item_t));
@@ -998,7 +1003,7 @@ policy_summary_split(smartlist_t *summary,
}
start_at_index = i;
- while(AT(i)->prt_max < prt_max)
+ while (AT(i)->prt_max < prt_max)
i++;
if (AT(i)->prt_max != prt_max) {
policy_summary_item_t* new_item;
@@ -1253,4 +1258,3 @@ policies_free_all(void)
HT_CLEAR(policy_map, &policy_root);
}
-/* vim:set et ts=2 shiftwidth=2: */