diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-06-04 22:42:13 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-06-04 22:42:13 +0000 |
commit | 853e2d99b64cc886377f95b8f74e9f549769c410 (patch) | |
tree | 3c5949273d8d13229b51bdb8a2ecf4581d27dd18 /src/or/router.c | |
parent | c4647545a02bd5f6b28bdb2bcd50a915ef04cf8c (diff) | |
download | tor-853e2d99b64cc886377f95b8f74e9f549769c410.tar.gz tor-853e2d99b64cc886377f95b8f74e9f549769c410.zip |
Add a new warning to our "warn a lot" list: unused parameters. This means we have to explicitly "use" unuseds, but it can catch bugs. (It caught two coding mistakes so far.)
svn:r6532
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/or/router.c b/src/or/router.c index dd9bde6ff3..d9186adc1e 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -480,7 +480,7 @@ router_orport_found_reachable(void) " Publishing server descriptor." : ""); can_reach_or_port = 1; mark_my_descriptor_dirty(); - consider_publishable_server(time(NULL), 1); + consider_publishable_server(1); } } @@ -569,7 +569,7 @@ proxy_mode(or_options_t *options) * - We have the AuthoritativeDirectory option set. */ static int -decide_if_publishable_server(time_t now) +decide_if_publishable_server(void) { or_options_t *options = get_options(); @@ -593,7 +593,7 @@ decide_if_publishable_server(time_t now) * determine what IP address and ports to test. */ void -consider_publishable_server(time_t now, int force) +consider_publishable_server(int force) { int rebuilt; @@ -601,7 +601,7 @@ consider_publishable_server(time_t now, int force) return; rebuilt = router_rebuild_descriptor(0); - if (decide_if_publishable_server(now)) { + if (decide_if_publishable_server()) { set_server_advertised(1); if (rebuilt == 0) router_upload_dir_desc_to_dirservers(force); @@ -951,6 +951,7 @@ check_descriptor_ipaddress_changed(time_t now) { uint32_t prev, cur; or_options_t *options = get_options(); + (void) now; if (!desc_routerinfo) return; |