aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-06-15 04:23:36 +0000
committerRoger Dingledine <arma@torproject.org>2007-06-15 04:23:36 +0000
commit6a2f045163e7583fd41318cd8f0e4d321c937fee (patch)
tree9795d6389791fffa886ebf4ff09a6524c6f5a278 /src/or
parent73f7310d9b7fdca11278b139336a0671be1ee883 (diff)
downloadtor-6a2f045163e7583fd41318cd8f0e4d321c937fee.tar
tor-6a2f045163e7583fd41318cd8f0e4d321c937fee.tar.gz
extra points for making the function name reflect what it does
svn:r10608
Diffstat (limited to 'src/or')
-rw-r--r--src/or/directory.c2
-rw-r--r--src/or/dirserv.c2
-rw-r--r--src/or/or.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 546b7e2cc..7084c163e 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -1804,7 +1804,7 @@ directory_handle_command_get(dir_connection_t *conn, const char *headers,
smartlist_free(dir_fps);
return 0;
}
- if (dirserv_statuses_are_old(dir_fps, if_modified_since)) {
+ if (dirserv_remove_old_statuses(dir_fps, if_modified_since)) {
write_http_status_line(conn, 304, "Not modified");
/* no need to free dir_fps's elements, since
* dirserv_statuses_are_old() already did. */
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 4d4b6902f..fd25da68b 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -2545,7 +2545,7 @@ dirserv_test_reachability(int try_all)
* Return 1 if no keys remain, else return 0.
*/
int
-dirserv_statuses_are_old(smartlist_t *fps, time_t cutoff)
+dirserv_remove_old_statuses(smartlist_t *fps, time_t cutoff)
{
SMARTLIST_FOREACH(fps, char *, digest,
{
diff --git a/src/or/or.h b/src/or/or.h
index ad25946e0..75a6a3783 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -2739,7 +2739,7 @@ void dirserv_test_reachability(int try_all);
int authdir_wants_to_reject_router(routerinfo_t *ri, const char **msg,
int complain);
int dirserv_would_reject_router(routerstatus_t *rs);
-int dirserv_statuses_are_old(smartlist_t *fps, time_t cutoff);
+int dirserv_remove_old_statuses(smartlist_t *fps, time_t cutoff);
size_t dirserv_estimate_data_size(smartlist_t *fps, int is_serverdescs,
int compressed);
int routerstatus_format_entry(char *buf, size_t buf_len,