[or-cvs] r10608: extra points for making the function name reflect what it do (tor/trunk/src/or)

arma at seul.org arma at seul.org
Fri Jun 15 04:23:37 UTC 2007


Author: arma
Date: 2007-06-15 00:23:36 -0400 (Fri, 15 Jun 2007)
New Revision: 10608

Modified:
   tor/trunk/src/or/directory.c
   tor/trunk/src/or/dirserv.c
   tor/trunk/src/or/or.h
Log:
extra points for making the function name reflect what it does


Modified: tor/trunk/src/or/directory.c
===================================================================
--- tor/trunk/src/or/directory.c	2007-06-15 04:20:51 UTC (rev 10607)
+++ tor/trunk/src/or/directory.c	2007-06-15 04:23:36 UTC (rev 10608)
@@ -1804,7 +1804,7 @@
       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. */

Modified: tor/trunk/src/or/dirserv.c
===================================================================
--- tor/trunk/src/or/dirserv.c	2007-06-15 04:20:51 UTC (rev 10607)
+++ tor/trunk/src/or/dirserv.c	2007-06-15 04:23:36 UTC (rev 10608)
@@ -2545,7 +2545,7 @@
  * 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,
   {

Modified: tor/trunk/src/or/or.h
===================================================================
--- tor/trunk/src/or/or.h	2007-06-15 04:20:51 UTC (rev 10607)
+++ tor/trunk/src/or/or.h	2007-06-15 04:23:36 UTC (rev 10608)
@@ -2739,7 +2739,7 @@
 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,



More information about the tor-commits mailing list