]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make get_net_param_from_list() static
authorSebastian Hahn <sebastian@torproject.org>
Mon, 27 Dec 2010 17:44:42 +0000 (18:44 +0100)
committerSebastian Hahn <sebastian@torproject.org>
Sat, 15 Jan 2011 18:42:17 +0000 (19:42 +0100)
This prepares for making the accessor method for consensus parameters
safer in the next commit.

src/or/networkstatus.c
src/or/networkstatus.h

index dfc3a45f767f095f6bf8c754bf7122e858cb4f3f..76e21592dce07f6d9bb3f340afeb2027a70e108f 100644 (file)
@@ -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)
 {
index 2f18dc9525fe36bd3c94a3050513d4ad9b6f995a..f95c1563b41a4dc448a79b66a6a788743bcaab27 100644 (file)
@@ -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,