diff options
author | Roger Dingledine <arma@torproject.org> | 2003-09-16 05:41:49 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-09-16 05:41:49 +0000 |
commit | 8b71b7338faeaedf60e40b335b865781106ad1a2 (patch) | |
tree | 8d377cc8a77134d9cfd39b7a0b2b72cf7e93852b /src/or/onion.c | |
parent | 9c6343fdf8ab6e8241c613c54bb3bd9cb6c78a91 (diff) | |
download | tor-8b71b7338faeaedf60e40b335b865781106ad1a2.tar.gz tor-8b71b7338faeaedf60e40b335b865781106ad1a2.zip |
clean up exported api's
svn:r461
Diffstat (limited to 'src/or/onion.c')
-rw-r--r-- | src/or/onion.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/or/onion.c b/src/or/onion.c index 1ba4c1789a..5088fb59aa 100644 --- a/src/or/onion.c +++ b/src/or/onion.c @@ -155,8 +155,7 @@ int onionskin_answer(circuit_t *circ, unsigned char *payload, unsigned char *key } /* uses a weighted coin with weight cw to choose a route length */ -int chooselen(double cw) -{ +static int chooselen(double cw) { int len = 2; uint8_t coin; @@ -181,8 +180,7 @@ int chooselen(double cw) * int cw is the coin weight to use when choosing the route * order of routers is from last to first */ -unsigned int *new_route(double cw, routerinfo_t **rarray, int rarray_len, int *routelen) -{ +static unsigned int *new_route(double cw, routerinfo_t **rarray, int rarray_len, int *routelen) { int i; int num_acceptable_routers; unsigned int *route; |