/** Return a count of directory connections that are fetching the item
* described by <b>purpose</b>/<b>resource</b>. */
-static INLINE int
+static inline int
connection_dir_count_by_purpose_and_resource(
int purpose,
const char *resource)
/** Return a count of directory connections that are fetching the item
* described by <b>purpose</b>/<b>resource</b>/<b>state</b>. */
-static INLINE int
+static inline int
connection_dir_count_by_purpose_resource_and_state(
int purpose,
const char *resource,
/* A helper function for connection_dir_close_consensus_conn_if_extra()
* and connection_dir_close_extra_consensus_conns() that returns 0 if
* we can't have, or don't want to close, excess consensus connections. */
-int
+STATIC int
connection_dir_would_close_consensus_conn_helper(void)
{
const or_options_t *options = get_options();
const char *headers,
const char *req_body,
size_t req_body_len);
-int connection_dir_would_close_consensus_conn_helper(void);
+STATIC int connection_dir_would_close_consensus_conn_helper(void);
STATIC int download_status_schedule_get_delay(download_status_t *dls,
const smartlist_t *schedule,
time_t now);
(void)tc;
/* Don't return NULL, that causes the test to fail */
- return "ok";
+ return (void*)"ok";
}
static int