[or-cvs] [tor/master] Make get_net_param_from_list() static

arma at torproject.org arma at torproject.org
Sun Jan 16 03:40:09 UTC 2011


commit ca6c8136128eed09a33aeeddc6d11b58b4eb361b
Author: Sebastian Hahn <sebastian at torproject.org>
Date:   Mon Dec 27 18:44:42 2010 +0100

    Make get_net_param_from_list() static
    
    This prepares for making the accessor method for consensus parameters
    safer in the next commit.
---
 src/or/networkstatus.c |    2 +-
 src/or/networkstatus.h |    2 --
 2 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index dfc3a45..76e2159 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -2125,7 +2125,7 @@ networkstatus_dump_bridge_status_to_file(time_t now)
   tor_free(status);
 }
 
-int32_t
+static int32_t
 get_net_param_from_list(smartlist_t *net_params, const char *param_name,
                         int default_val)
 {
diff --git a/src/or/networkstatus.h b/src/or/networkstatus.h
index 2f18dc9..f95c156 100644
--- a/src/or/networkstatus.h
+++ b/src/or/networkstatus.h
@@ -81,8 +81,6 @@ void signed_descs_update_status_from_consensus_networkstatus(
 char *networkstatus_getinfo_helper_single(routerstatus_t *rs);
 char *networkstatus_getinfo_by_purpose(const char *purpose_string, time_t now);
 void networkstatus_dump_bridge_status_to_file(time_t now);
-int32_t get_net_param_from_list(smartlist_t *net_params, const char *name,
-                                int default_val);
 int32_t networkstatus_get_param(networkstatus_t *ns, const char *param_name,
                                 int32_t default_val);
 int getinfo_helper_networkstatus(control_connection_t *conn,





More information about the tor-commits mailing list