aboutsummaryrefslogtreecommitdiff
path: root/src/or/onion.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-08-14 03:52:51 +0000
committerRoger Dingledine <arma@torproject.org>2003-08-14 03:52:51 +0000
commit88edae94076cc39d40a39f80b2d6ddadc88fe324 (patch)
tree1c7024e5218344b7802a69787fbc37a724f33362 /src/or/onion.c
parente1f2693d05b71e7c137638527848f053440f4482 (diff)
downloadtor-88edae94076cc39d40a39f80b2d6ddadc88fe324.tar
tor-88edae94076cc39d40a39f80b2d6ddadc88fe324.tar.gz
start refactoring dnsworker so testing won't be so darn hard
add NumCpus config variable in preparation for cpuworkers hardcode /etc/torrc path for config (simplifies win32 port) improve exit policy debugging during router entry parsing svn:r397
Diffstat (limited to 'src/or/onion.c')
-rw-r--r--src/or/onion.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/onion.c b/src/or/onion.c
index ea457c5b4..7bab89bef 100644
--- a/src/or/onion.c
+++ b/src/or/onion.c
@@ -226,7 +226,7 @@ unsigned int *new_route(double cw, routerinfo_t **rarray, int rarray_len, int *r
}
if(num_acceptable_routers < *routelen) {
- log(LOG_DEBUG,"new_route(): Cutting routelen from %d to %d.",*routelen, num_acceptable_routers);
+ log(LOG_NOTICE,"new_route(): Cutting routelen from %d to %d.",*routelen, num_acceptable_routers);
*routelen = num_acceptable_routers;
}
@@ -246,7 +246,7 @@ unsigned int *new_route(double cw, routerinfo_t **rarray, int rarray_len, int *r
return NULL;
}
- choice = choice % (rarray_len);
+ choice = choice % rarray_len;
log(LOG_DEBUG,"new_route(): Contemplating router %u.",choice);
if(choice == oldchoice ||
(oldchoice < rarray_len && !crypto_pk_cmp_keys(rarray[choice]->pkey, rarray[oldchoice]->pkey)) ||