Skip to content
Snippets Groups Projects
Commit ca6c8136 authored by Sebastian Hahn's avatar Sebastian Hahn
Browse files

Make get_net_param_from_list() static

This prepares for making the accessor method for consensus parameters
safer in the next commit.
parent 13939857
No related branches found
No related tags found
No related merge requests found
......@@ -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)
{
......
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment