mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
Constify functions that can be constified.
This commit is contained in:
parent
5ca9b830ea
commit
2c6f2e9be9
@ -214,8 +214,8 @@ count_opened_desc_intro_point_circuits(const hs_service_t *service,
|
|||||||
|
|
||||||
DIGEST256MAP_FOREACH(desc->intro_points.map, key,
|
DIGEST256MAP_FOREACH(desc->intro_points.map, key,
|
||||||
const hs_service_intro_point_t *, ip) {
|
const hs_service_intro_point_t *, ip) {
|
||||||
circuit_t *circ;
|
const circuit_t *circ;
|
||||||
origin_circuit_t *ocirc = hs_circ_service_get_intro_circ(ip);
|
const origin_circuit_t *ocirc = hs_circ_service_get_intro_circ(ip);
|
||||||
if (ocirc == NULL) {
|
if (ocirc == NULL) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -2048,8 +2048,8 @@ update_revision_counters_in_state(void)
|
|||||||
* counter. Else set <b>service_found_out</b> to False. */
|
* counter. Else set <b>service_found_out</b> to False. */
|
||||||
STATIC uint64_t
|
STATIC uint64_t
|
||||||
check_state_line_for_service_rev_counter(const char *state_line,
|
check_state_line_for_service_rev_counter(const char *state_line,
|
||||||
ed25519_public_key_t *blinded_pubkey,
|
const ed25519_public_key_t *blinded_pubkey,
|
||||||
int *service_found_out)
|
int *service_found_out)
|
||||||
{
|
{
|
||||||
smartlist_t *items = NULL;
|
smartlist_t *items = NULL;
|
||||||
int ok;
|
int ok;
|
||||||
@ -2111,7 +2111,7 @@ check_state_line_for_service_rev_counter(const char *state_line,
|
|||||||
* service with blinded key <b>blinded_pubkey</b>. If no revision counter is
|
* service with blinded key <b>blinded_pubkey</b>. If no revision counter is
|
||||||
* found, return 0. */
|
* found, return 0. */
|
||||||
static uint64_t
|
static uint64_t
|
||||||
get_rev_counter_for_service(ed25519_public_key_t *blinded_pubkey)
|
get_rev_counter_for_service(const ed25519_public_key_t *blinded_pubkey)
|
||||||
{
|
{
|
||||||
or_state_t *state = get_or_state();
|
or_state_t *state = get_or_state();
|
||||||
config_line_t *line;
|
config_line_t *line;
|
||||||
|
@ -332,8 +332,8 @@ STATIC void service_descriptor_free(hs_service_descriptor_t *desc);
|
|||||||
|
|
||||||
STATIC uint64_t
|
STATIC uint64_t
|
||||||
check_state_line_for_service_rev_counter(const char *state_line,
|
check_state_line_for_service_rev_counter(const char *state_line,
|
||||||
ed25519_public_key_t *blinded_pubkey,
|
const ed25519_public_key_t *blinded_pubkey,
|
||||||
int *service_found_out);
|
int *service_found_out);
|
||||||
|
|
||||||
#endif /* TOR_UNIT_TESTS */
|
#endif /* TOR_UNIT_TESTS */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user